Greetings,
I'm using your module in my Video portal and came across with the following inconvenience - all permissions are built using content type human-readable names. So, if I have a 'video' content type with 'Home Video' name the create permission for one of its groups will be like this 'create Home Video group_editor_fields' instead of 'create video group_editor_fields'.
I think it is not good to use human names in permission internal names.
'Home Video' name can be changed any time by administrator. This will break a snippet like this:
if (!user_access('create Home Video group_editor_fields')) {
Please, consider to use content type machine names for permissions. Thanks.
Comments
Comment #1
mholloway CreditAttribution: mholloway commentedPotential one-line fix?
We had the same problem and changed this:
to this:
It seems to work but is not yet thoroughly tested. Use at your own risk :)