fix: [users:delete] Typo copy paste error
parent
665999b8f4
commit
fcffad6777
|
@ -193,6 +193,7 @@ class UsersController extends AppController
|
|||
|
||||
public function delete($id)
|
||||
{
|
||||
$currentUser = $this->ACL->getUser();
|
||||
$validRoles = [];
|
||||
if (!$currentUser['role']['perm_admin']) {
|
||||
$validRoles = $this->Users->Roles->find('list')->order(['name' => 'asc'])->all()->toArray();
|
||||
|
|
Loading…
Reference in New Issue