Bonfire
Bonfire copied to clipboard
module builder module permission not set if name too long
This is a combo of issues actually. The table allows the name for a permission to be 255 characters, but the form to enter a new permission (admin/settings/permissions/edit/) is limited to 30 characters.... which I think is what is causing the error when using the module builder because my guess is somewhere in the code it is limiting the length to 30 characters... since the module name is what is used to create the permissions seems like the easiest fix would be to ensure the module name has a limit.... but this will have to be devised based on the name of the contexts it is being added too as the limit includes modulename.context.action .....
The best fix would be to change the code so it allows longer (255) names to be used...
Even though this is an old issue, I wanted to add a note that, although permissions can be longer (255 characters), the description of the permission can only be 100 characters at this time, and this is probably the limiting factor when creating a module with the current version of the Builder. In fact, the maximum length for a module name which could generate valid permission entries would probably be somewhere close to 80 characters.