parent
88abecfe8f
commit
b0e06cd0f6
|
@ -145,6 +145,9 @@ echo $this->element('genericElements/IndexTable/index_table', [
|
|||
]
|
||||
],
|
||||
'function' => function ($row, $options) use ($loggedUser, $validRoles) {
|
||||
if ($row['id'] == $loggedUser['id']) {
|
||||
return false;
|
||||
}
|
||||
if (empty($loggedUser['role']['perm_admin'])) {
|
||||
if (empty($loggedUser['role']['perm_org_admin'])) {
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue