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());
|
$oldUserCount = count($oldStorage->getApplicableUsers());
|
||||||
$oldGroupCount = count($oldStorage->getApplicableGroups());
|
$oldGroupCount = count($oldStorage->getApplicableGroups());
|
||||||
$newUserCount = count($oldStorage->getApplicableUsers());
|
$newUserCount = count($updatedStorage->getApplicableUsers());
|
||||||
$newGroupCount = count($oldStorage->getApplicableGroups());
|
$newGroupCount = count($updatedStorage->getApplicableGroups());
|
||||||
$wasGlobal = ($oldUserCount + $oldGroupCount) === 0;
|
$wasGlobal = ($oldUserCount + $oldGroupCount) === 0;
|
||||||
$isGlobal = ($newUserCount + $newGroupCount) === 0;
|
$isGlobal = ($newUserCount + $newGroupCount) === 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue