By myhemant on
Hi,
How can we get all content types name according to role and its permission.
I need to check user has permission to edit/delete any node.
Is there any function exist in drupal to return all permission list according to role.
Thanks.
Comments
Hi myhemant, You can check
Hi myhemant,
You can check the users permissions against the content types on the site on the permissions page at: /admin/people/permissions/list
To check a specific user you will need to check their role against the permissions you want them to have.
Cheers
Tom
HI Tom, Thanks for
HI Tom,
Thanks for reply.
Basically I am searching drupal function which returns all permissions of a role.
I just want to pass the role id as parameter and get its all permissions.
Is there any function exist in drupal?
Thanks.
Hemant
user_role_permissions()
user_role_permissions()
Contact me to contract me for D7 -> D10/11 migrations.
Thanks Jaypan its working
Thanks Jaypan
its working nice.
Thanks