Fix acl.get().

This commit is contained in:
Julien Fontanet 2015-03-02 13:31:17 +01:00
parent 1a71cc9223
commit e206cfe6d6

View File

@ -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');