diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-11 16:47:33 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-20 17:56:02 +0200 |
commit | 88740f035d733d170317d147e15dfceec0f3282f (patch) | |
tree | e89b41c948636038bdd009ea7f723aad358e6ee3 /lib/private | |
parent | 03d32bc39bc9baed4803e41192b40372b5167ec4 (diff) | |
download | nextcloud-server-88740f035d733d170317d147e15dfceec0f3282f.tar.gz nextcloud-server-88740f035d733d170317d147e15dfceec0f3282f.zip |
Act on effective system tag canAssign permission
Whenever the server returns true for the can-assign Webdav property of
a system tag, it means the current user is allowed to assign,
regardless of the value of user-assignable.
This commit brings the proper logic to the web UI to make it possible
for users to assign when they have the permission.
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/SystemTag/SystemTagManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php index 832afc2a114..e0bd83603df 100644 --- a/lib/private/SystemTag/SystemTagManager.php +++ b/lib/private/SystemTag/SystemTagManager.php @@ -350,7 +350,7 @@ class SystemTagManager implements ISystemTagManager { return false; } - $groupIds = $this->groupManager->getUserGroupIds($user->getUID()); + $groupIds = $this->groupManager->getUserGroupIds($user); if (!empty($groupIds)) { $matchingGroups = array_intersect($groupIds, $this->getTagGroups($tag)); if (!empty($matchingGroups)) { |