Skip to content

Commit

Permalink
125: Cleaned up
Browse files Browse the repository at this point in the history
  • Loading branch information
rimi-itk committed Jan 6, 2025
1 parent b9d6ecd commit 4cdfd18
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function nodeAccess(NodeInterface $node, string $operation, AccountInterf
/**
* Implements hook_views_query_alter().
*
* Alters query to onyl select nodes that the current user has edit access to.
* Alters query to only select nodes that the current user has edit access to.
*/
public function viewsQueryAlter(ViewExecutable $view, QueryPluginBase $query) {
if ($this->bypassDepartmentAccessCheck()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
data:
- id: 001
primary_email: [email protected]
first_name: Deskpro
last_name: Agent
title_prefix: ''
name: Deskpro Agent
display_name: Deskpro Agent
is_agent: true
avatar:
default_url_pattern: https://example.com/file.php/avatar/{{IMG_SIZE}}/default.jpg?size-fit=1
url_pattern: null
base_gravatar_url: null
online: false
online_for_chat: false
last_seen: null
agent_data: null

- id: 007
primary_email: [email protected]
first_name: James
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ public function load() {
->id(),
],
'field_project_reference' => '',
// If we're lucky this Deskpro data makes sense.
'field_deskpro_department_id' => 12,
// If we're lucky (or follow the test mode instructions in
// ../../../../../hoeringsportal_deskpro/README.md) this Deskpro data
// makes sense.
'field_deskpro_department_id' => 1,
'field_deskpro_agent_email' => '[email protected]',
'field_teaser' => 'Lorem ipsum teaser',
'field_hearing_ticket_add' => '',
Expand Down

0 comments on commit 4cdfd18

Please sign in to comment.