Serenity: Permission Keys

Created on 15 Nov 2018  路  3Comments  路  Source: serenity-is/Serenity

I could see a new permission key in permission dialog just by having it in PermissionKeys Class i.e. without using it on any of the attributes like ReadPermission or ModifyPermission, which actually contradicts what you say in the article https://volkanceylan.gitbooks.io/serenity-guide/howto/how_to_register_permissions_in_serene.html (There is a PermissionKeys class in Serene. Some users expected that when they write their permission keys in this class, they will be discovered.
But, PermissionKeys class is only there for intellisense purposes, it is ignored by Serene.)

Note- I haven't registered it using RegisterPermission attribute as well.

Most helpful comment

We later added a feature to auto add permissions there, doc should be updated.

All 3 comments

We later added a feature to auto add permissions there, doc should be updated.

How do I get this feature now on a project which has an updated serenity version.

i.e. One of my old projects needs this feature, even after updating it to latest serenity I don't see the permissions that I have added in PermissionKey class.

You need to compare source code of ListPermissionKeys methods.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

moostafaa picture moostafaa  路  3Comments

AmuthaKondusamy picture AmuthaKondusamy  路  3Comments

kilroyFR picture kilroyFR  路  3Comments

newyearsoft picture newyearsoft  路  3Comments

JohnRanger picture JohnRanger  路  3Comments