Fix adding global applicable when removing all other applicables

This commit is contained in:
Robin Appelman 2016-01-13 15:31:26 +01:00
parent cc4e4ecf0f
commit b613db9e16
1 changed files with 2 additions and 2 deletions

View File

@ -372,8 +372,8 @@ abstract class StoragesService {
$oldUserCount = count($oldStorage->getApplicableUsers());
$oldGroupCount = count($oldStorage->getApplicableGroups());
$newUserCount = count($oldStorage->getApplicableUsers());
$newGroupCount = count($oldStorage->getApplicableGroups());
$newUserCount = count($updatedStorage->getApplicableUsers());
$newGroupCount = count($updatedStorage->getApplicableGroups());
$wasGlobal = ($oldUserCount + $oldGroupCount) === 0;
$isGlobal = ($newUserCount + $newGroupCount) === 0;