chg: Removed requirement for findAdminsResponsibleForUser for not site admin

- Take own org's admins / siteadmins before looking for site admins from other orgs
pull/1510/head
Iglocska 2016-09-03 23:58:52 +02:00
parent f9e6180c06
commit 8034f9af4b
1 changed files with 0 additions and 1 deletions

View File

@ -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']