summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2018-06-19 16:23:02 +0200
committerRobin Appelman <robin@icewind.nl>2018-06-19 16:23:02 +0200
commit8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9 (patch)
treecf3cd4279835e6cb8cf8aa30bb6f2d522bbf1415 /settings/src
parentc3aea9cdf6d88895b1a1fc54ead9a2f0aa792cd3 (diff)
downloadnextcloud-server-8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9.tar.gz
nextcloud-server-8a1cbbd90e73b44f1884b4a65fe4c55d40d377e9.zip
Don't pretend we can add/remove users to/from groups when we can't
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/components/userList/userRow.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/settings/src/components/userList/userRow.vue b/settings/src/components/userList/userRow.vue
index 19d35e8d814..aaf5d9474f4 100644
--- a/settings/src/components/userList/userRow.vue
+++ b/settings/src/components/userList/userRow.vue
@@ -374,6 +374,9 @@ export default {
* @returns {Promise}
*/
addUserGroup(group) {
+ if (!group.canAdd) {
+ return false;
+ }
this.loading.groups = true;
let userid = this.user.id;
let gid = group.id;
@@ -388,6 +391,9 @@ export default {
* @returns {Promise}
*/
removeUserGroup(group) {
+ if (!group.canRemove) {
+ return false;
+ }
this.loading.groups = true;
let userid = this.user.id;
let gid = group.id;