Skip to content

Commit

Permalink
Regression: addPermissionToRole argument (#15267)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Aug 27, 2019
1 parent a455a61 commit 2ef6b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/authorization/client/views/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Template.permissionsTable.events({

const action = ~permission.roles.indexOf(role) ? 'authorization:removeRoleFromPermission' : 'authorization:addPermissionToRole';

return Meteor.call(action, permission, role);
return Meteor.call(action, permissionId, role);
},
});

Expand Down
2 changes: 1 addition & 1 deletion app/models/server/models/Permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class Permissions extends Base {
}

findOneById(_id) {
return this.findOne(_id);
return this.findOne({ _id });
}

createOrUpdate(name, roles) {
Expand Down

0 comments on commit 2ef6b5b

Please sign in to comment.