Explorar o código

At Sandstorm, every WeKan user is now Admin and has Admin Panel. This could help export, board member permissions, etc.

Thanks to PizzaProgram and xet7 !

Fixes #3423
Lauri Ojansivu %!s(int64=3) %!d(string=hai) anos
pai
achega
23a2e90f5f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      sandstorm.js

+ 5 - 1
sandstorm.js

@@ -234,7 +234,11 @@ if (isSandstorm && Meteor.isServer) {
 
   function updateUserPermissions(userId, permissions) {
     const isActive = permissions.indexOf('participate') > -1;
-    const isAdmin = permissions.indexOf('configure') > -1;
+    // a) OLD 2021-11-29: First user is admin
+    //const isAdmin = permissions.indexOf('configure') > -1;
+    // b) NEW 2021-11-29: Every user is admin:
+    //    https://github.com/wekan/wekan/issues/3423
+    const isAdmin = true;
     const isCommentOnly = false;
     const isNoComments = false;
     const isWorker = false;