Skip to content

Commit

Permalink
fix: fix manage user journey (dvsa/olcs-selfserve#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLicense authored Mar 11, 2024
1 parent 15cbb8a commit d09fb77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions app/selfserve/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/selfserve/module/Olcs/src/Table/Tables/users.table.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function ($role) {
'type' => 'ActionLinks',
'isRemoveVisible' => function ($row) {
/** $var TableBuilder $this */
return ($row['id'] !== $this->authService->getIdentity()->getUserData()['id']);
return $this->permissionService->isSelf($row['id']);
},
'ariaDescription' => function ($row, $column) {
$column['formatter'] = Name::class;
Expand Down

0 comments on commit d09fb77

Please sign in to comment.