Linting
This commit is contained in:
@@ -23,7 +23,7 @@ const RoleModel = Mongoose.model('roles', RoleSchema);
|
||||
|
||||
module.exports = {
|
||||
canRole: (e, roleId, action, callback) => {
|
||||
[initial, canElevate = false] = Array.isArray(action) ? action : [action];
|
||||
var [initial, canElevate = false] = Array.isArray(action) ? action : [action];
|
||||
|
||||
RoleModel.findById(roleId, (err, result) => {
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user