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

Commit

Permalink
Merge pull request #168 from CoderDojo/ckiss-fixes
Browse files Browse the repository at this point in the history
linting fixes
  • Loading branch information
ckiss committed Nov 17, 2015
2 parents 7facc30 + 7a0d91f commit 9d814cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions profiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@ module.exports = function (options) {
seneca.act({role: 'cd-users', cmd: 'load_dojo_admins_for_user', userId: profile.userId}, function (err, dojoAdmins) {
if (err) return done(err);
profile.requestingUserIsDojoAdmin = _.find(dojoAdmins, function (dojoAdmin) {
if(!dojoAdmin.ok){
return false
if (!dojoAdmin.ok) {
return false;
}
return dojoAdmin.id === args.user ? args.user.id : null;
});
Expand Down

0 comments on commit 9d814cc

Please sign in to comment.