diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-06-21 20:46:05 +0300 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-06-21 20:46:05 +0300 |
commit | 60d62a6ae3a79059e68b2cd1d554d67b7d50b6aa (patch) | |
tree | e2e5ac2e3812ca9ba3085e9b59bae94099882eef | |
parent | 4f46adc389126597266d71110f9754841f86857c (diff) | |
download | wekan-60d62a6ae3a79059e68b2cd1d554d67b7d50b6aa.tar.gz wekan-60d62a6ae3a79059e68b2cd1d554d67b7d50b6aa.tar.bz2 wekan-60d62a6ae3a79059e68b2cd1d554d67b7d50b6aa.zip |
- Sandstorm Wekan: Set everyone as Admin. Please test does this help with
[Problem with the user management: can't add users or give wekan admin rights](https://github.com/wekan/wekan/issues/2405).
Thanks to xet7 !
Related #2405
-rw-r--r-- | sandstorm.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sandstorm.js b/sandstorm.js index de003a6f..9a1f4fd5 100644 --- a/sandstorm.js +++ b/sandstorm.js @@ -206,7 +206,8 @@ if (isSandstorm && Meteor.isServer) { function updateUserPermissions(userId, permissions) { const isActive = permissions.indexOf('participate') > -1; - const isAdmin = permissions.indexOf('configure') > -1; + //const isAdmin = permissions.indexOf('configure') > -1; + const isAdmin = true; const isCommentOnly = false; const isNoComments = false; const permissionDoc = { userId, isActive, isAdmin, isNoComments, isCommentOnly }; |