Fix adding global applicable when removing all other applicables
This commit is contained in:
parent
cc4e4ecf0f
commit
b613db9e16
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue