On my site I have a staff role that is supposed to create Draft content. When checking if this role has permission to "Author moderated content", the form displays with errors recommending permissions this role definitely has, like access content.
In the code, this module still uses $rid where we use role names now. It also uses the user_role_permissions() function to get the permissions for the specified role, but since we have the role loaded already, we can pull them from $role->permissions; in a more convenient format.
On my site I have a
staffrole that is supposed to create Draft content. When checking if this role has permission to "Author moderated content", the form displays with errors recommending permissions this role definitely has, likeaccess content.In the code, this module still uses $rid where we use role names now. It also uses the
user_role_permissions()function to get the permissions for the specified role, but since we have the role loaded already, we can pull them from$role->permissions;in a more convenient format.