orionjs/orioncms

Hide create, update or delete buttons not working

Closed this issue · 2 comments

tomyo commented

Hi, although I'm able to deny the insert, update and remove operations, I can't make the buttons go away. I'm following the docs:

Roles.adminRole.deny 'collections.balances.showCreate', () -> true
Roles.adminRole.deny 'collections.balances.showUpdate', (doc) -> true
Roles.adminRole.deny 'collections.balances.showRemove', (doc) -> true

Any idea why is not working? Oh, I also tried the allow syntax, no luck. Thanks!

tomyo commented

Turns out this particular rules need to be in client code.

Yes they do, because in the client we are checking that permission