fix: [users:delete] Typo copy paste error

cli-modification-summary
Sami Mokaddem 2022-01-26 15:45:57 +01:00
parent 665999b8f4
commit fcffad6777
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 0 deletions

View File

@ -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();