diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-11 17:47:33 +0300 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-20 18:56:02 +0300 |
commit | 88740f035d733d170317d147e15dfceec0f3282f (patch) | |
tree | e89b41c948636038bdd009ea7f723aad358e6ee3 /apps/systemtags/js | |
parent | 03d32bc39bc9baed4803e41192b40372b5167ec4 (diff) |
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 'apps/systemtags/js')
-rw-r--r-- | apps/systemtags/js/systemtagsinfoview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/systemtags/js/systemtagsinfoview.js b/apps/systemtags/js/systemtagsinfoview.js index 2f01ca7db34..a7320a3956f 100644 --- a/apps/systemtags/js/systemtagsinfoview.js +++ b/apps/systemtags/js/systemtagsinfoview.js @@ -12,7 +12,7 @@ function modelToSelection(model) { var data = model.toJSON(); - if (!OC.isUserAdmin() && !data.userAssignable) { + if (!OC.isUserAdmin() && !data.canAssign) { data.locked = true; } return data; |