Fixed a bug that caused the publish e-mails to not respect the sharing groups correctly

pull/976/head v2.4.23
Iglocska 2016-02-22 08:48:12 +01:00
parent 341d91f949
commit acc7b6058c
1 changed files with 1 additions and 2 deletions

View File

@ -268,10 +268,9 @@ class SharingGroup extends AppModel {
// if the current server is marked as "all orgs" in the sharing group, just return true
foreach ($sg['SharingGroupServer'] as $sgs) {
if ($sgs['server_id'] == 0) {
if ('all_orgs') return true;
if ($sgs['all_orgs']) return true;
}
}
// return a list of arrays with all organisations tied to the SG.
$orgs = array();
foreach ($sg['SharingGroupOrg'] as $sgo) {