Skip to content

Assigning permissions for custom entities #4967

Discussion options

You must be logged in to vote

I've made some progress in my understanding. In case it helps anyone, here is my current model:
(Please correct me if anything looks wrong)

  • There is no hard relationship between modules and permissions (As in no foreign keys or standard table relationships). A permission can only be associated with a module instance via Permission.EntityName and Permission.EntityId using the same mechanism that it would use relate to any other entity.
  • Aside from Edit and View, Permissions in the permission grid are not unique to the module instance. Editing the permissions grid simply results in them being applied to the Permissions table, which is keyed to a Site.
  • The default "View Module" and "Edit Mod…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sbwalker
Comment options

Answer selected by TomasEvansCode
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants