Skip to content

Commit

Permalink
Fix perm issue for loadEventapplications (CoderDojo#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wardormeur authored Jan 2, 2018
1 parent 539924d commit 22440bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/perm/is-ticketing-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ function isTicketingAdmin (args, cb) {
// Used by Manage-events-users
if(args.params.query && _.isUndefined(dojoId)) eventId = args.params.query.eventId;
if(args.params.query && _.isUndefined(dojoId) && _.isUndefined(eventId)) sessionId = args.params.query.sessionId;
//Used by loadEventApplications
if(args.params.eventId && _.isUndefined(eventId)) eventId = args.params.eventId;
} else {
if(args.query) dojoId = args.query.dojoId;
if(args.eventInfo && _.isUndefined(dojoId)) dojoId = args.eventInfo.dojoId;
Expand Down

0 comments on commit 22440bc

Please sign in to comment.