summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-11 16:47:33 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-20 17:56:02 +0200
commit88740f035d733d170317d147e15dfceec0f3282f (patch)
treee89b41c948636038bdd009ea7f723aad358e6ee3 /lib/private
parent03d32bc39bc9baed4803e41192b40372b5167ec4 (diff)
downloadnextcloud-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.php2
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)) {