Search code examples
configurationpermissionsxml-configuration

Where should I store custom permissions for my web app


I'm wondering where is the ideal place to store custom permissions in my web applications.

For example I have the following permissions:

AdminPermission ReadPermission WritePermission

At the moment I store these in the static utilities class as the constant string type objects.

Thank you


Solution

  • Decided to go for a database approach with enums referencing records in xml config.