Skip to content

Commit

Permalink
Fixed bug in view permission causing 500 errors for Avrae
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaumRystra committed Feb 12, 2019
1 parent 8489ef5 commit 436c5bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/functions/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ canViewCharacter = function(char, userId){
userId = userId || Meteor.userId();
if (typeof char !== 'object'){
char = Characters.findOne(
charId,
char,
{fields: {owner: 1, writers: 1, readers: 1, "settings.viewPermission": 1}}
);
}
Expand Down

0 comments on commit 436c5bb

Please sign in to comment.