Explanation of the use of Adjust in an AuthorizedEventHandler

Topics: General
Mar 18, 2013 at 7:29 PM
Edited Mar 18, 2013 at 7:30 PM
In some core/third-party modules I'm seeing the use of an AuthorizedEventHandler with a method of "Adjust". It appears to take a module's Permissions like, for example, "Manage[Something]" and "adjust" it to "ManageOwn[Something]".

I'm just confused about what this does, because I thought that you could just create permissions and then assign them to roles (or use ImpliedBy) in order to have this "cascade" effect for permissions. So, for example, an Admin would have all the permissions, where as Anonymous might have only one basic permission to Read.

Sorry if I am missing something. I was taking a look at CustomForms and Blogs. I also saw that some third-party modules mimicked this same code.
Mar 20, 2013 at 1:54 AM
Any thoughts? At first I thought it was "adjusting" a custom permission to the standard ones, but in some cases I see that is not the case.