mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
add a perms utils file
This commit is contained in:
@@ -389,9 +389,6 @@ module.exports = class UsersService {
|
||||
return Promise.reject(new Error(`role ${role} is not supported`));
|
||||
}
|
||||
|
||||
// 5.11.2017 - Restricting this to a hierarchical system like WordPress
|
||||
// where you can only set one role at a time.
|
||||
// I'm not changing the data structure here, because I don't want a migration
|
||||
return UserModel.update({id}, {$set: {roles: [role]}});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user