diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-13 15:31:26 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-13 15:31:26 +0100 |
commit | b613db9e16e2261afce6ed2efe5af199d99d8213 (patch) | |
tree | de09313d5df89c3cb686ec3ec50d7e65dab46920 /apps/files_external/service/storagesservice.php | |
parent | cc4e4ecf0f2f1e2644ff66da537515ddaddc716c (diff) | |
download | nextcloud-server-b613db9e16e2261afce6ed2efe5af199d99d8213.tar.gz nextcloud-server-b613db9e16e2261afce6ed2efe5af199d99d8213.zip |
Fix adding global applicable when removing all other applicables
Diffstat (limited to 'apps/files_external/service/storagesservice.php')
-rw-r--r-- | apps/files_external/service/storagesservice.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/service/storagesservice.php b/apps/files_external/service/storagesservice.php index 5d3f5f431b9..c0dd263ed66 100644 --- a/apps/files_external/service/storagesservice.php +++ b/apps/files_external/service/storagesservice.php @@ -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; |