Fix acl.get().
This commit is contained in:
parent
1a71cc9223
commit
e206cfe6d6
@ -10,7 +10,7 @@ let get = coroutine(function *({subject, object}) {
|
||||
sieve.subject = (yield this.users.first(subject)).get('id');
|
||||
}
|
||||
if (object !== undefined) {
|
||||
object = this.getObject(object).id;
|
||||
sieve.object = this.getObject(object).id;
|
||||
}
|
||||
} catch (error) {
|
||||
this.throw('NO_SUCH_OBJECT');
|
||||
|
Loading…
Reference in New Issue
Block a user