diff --git a/app/Model/SharingGroup.php b/app/Model/SharingGroup.php index 8811117b2..9c7a42eb5 100644 --- a/app/Model/SharingGroup.php +++ b/app/Model/SharingGroup.php @@ -111,13 +111,6 @@ class SharingGroup extends AppModel return false; } - public function fetchAllAuthorisedForServer($server) - { - $sgs = $this->SharingGroupOrg->fetchAllAuthorised($server['RemoteOrg']['id']); - $sgs = array_merge($sgs, $this->SharingGroupServer->fetchAllSGsForServer($server['Server']['id'])); - return $sgs; - } - /** * Returns a list of all sharing groups that the user is allowed to see. * Scope can be: diff --git a/app/Model/SharingGroupServer.php b/app/Model/SharingGroupServer.php index 952de6f43..f96ed5e60 100644 --- a/app/Model/SharingGroupServer.php +++ b/app/Model/SharingGroupServer.php @@ -107,20 +107,4 @@ class SharingGroupServer extends AppModel } return false; } - - public function fetchAllSGsForServer($server_id) - { - $sgs = $this->find('all', array( - 'recursive' => -1, - 'conditions' => array('server_id' => $server_id) - )); - if (empty($sgs)) { - return array(); - } - $sgids = array(); - foreach ($sgs as $temp) { - $sgids[] = $temp[$this->alias]['id']; - } - return $sgids; - } }