Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 2610e30

Browse files
WardormeurDanielBrierton
authored andcommitted
Perm shouldnt crash and always return {allowed: bool}
1 parent 519a4e9 commit 2610e30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/perm/have-permissions-on-user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function havePermissionsOnUser (args, done) {
2525
if (err) return done(err);
2626
actorUsersDojos = response;
2727
async.every(targets, isUserAllowed, function (res) {
28-
if (!res) return done({'allowed': false});
28+
if (!res) return done(null, {'allowed': false});
2929
done(null, {'allowed': res});
3030
});
3131
});

0 commit comments

Comments
 (0)