Merge pull request #21692 from owncloud/external-add-global

Fix adding global applicable when removing all other applicables
This commit is contained in:
Thomas Müller 2016-01-13 17:36:52 +01:00
commit d0a690fde4
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;