Skip to content
Snippets Groups Projects
Unverified Commit 2ef6b5b1 authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by GitHub
Browse files

Regression: addPermissionToRole argument (#15267)

parent a455a618
No related branches found
No related tags found
No related merge requests found
......@@ -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);
},
});
......
......@@ -11,7 +11,7 @@ export class Permissions extends Base {
}
findOneById(_id) {
return this.findOne(_id);
return this.findOne({ _id });
}
createOrUpdate(name, roles) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment