add a perms utils file

This commit is contained in:
riley
2017-05-18 14:28:43 -06:00
parent ff75b9474a
commit 6deee7cb80
6 changed files with 12 additions and 19 deletions
-3
View File
@@ -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]}});
}