mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Revert v2.89 setting every Sandstorm Wekan user as admin.
Thanks to xet7. Related #2405
This commit is contained in:
parent
47e64c269c
commit
e5c0d0ea18
1 changed files with 1 additions and 2 deletions
|
@ -206,8 +206,7 @@ if (isSandstorm && Meteor.isServer) {
|
||||||
|
|
||||||
function updateUserPermissions(userId, permissions) {
|
function updateUserPermissions(userId, permissions) {
|
||||||
const isActive = permissions.indexOf('participate') > -1;
|
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 isCommentOnly = false;
|
||||||
const isNoComments = false;
|
const isNoComments = false;
|
||||||
const permissionDoc = { userId, isActive, isAdmin, isNoComments, isCommentOnly };
|
const permissionDoc = { userId, isActive, isAdmin, isNoComments, isCommentOnly };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue