浏览代码

- 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

Lauri Ojansivu 6 年之前
父节点
当前提交
60d62a6ae3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      sandstorm.js

+ 2 - 1
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 };