mirror of https://github.com/MISP/MISP
chg: Removed requirement for findAdminsResponsibleForUser for not site admin
- Take own org's admins / siteadmins before looking for site admins from other orgspull/1510/head
parent
f9e6180c06
commit
8034f9af4b
|
@ -903,7 +903,6 @@ class User extends AppModel {
|
|||
$admin = $this->find('first', array(
|
||||
'recursive' => -1,
|
||||
'conditions' => array(
|
||||
'Role.perm_site_admin' => 0,
|
||||
'Role.perm_admin' => 1,
|
||||
'User.disabled' => 0,
|
||||
'User.org_id' => $user['org_id']
|
||||
|
|
Loading…
Reference in New Issue