Stupide error -_-".
This commit is contained in:
parent
bfe5b71f19
commit
3369ab601a
@ -132,7 +132,7 @@ function throwIfFail (success) {
|
||||
}
|
||||
|
||||
function defaultCheckAuthorization (userId, object, permission) {
|
||||
return this.canAccess(userId, object.id, permission).then(throwIfFail)
|
||||
return this.hasPermission(userId, object.id, permission).then(throwIfFail)
|
||||
}
|
||||
|
||||
checkAuthorization = Bluebird.method(function (userId, object, permission) {
|
||||
|
Loading…
Reference in New Issue
Block a user