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

blacklabel_tom’s picture

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

myhemant’s picture

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

jaypan’s picture

Contact me to contract me for D7 -> D10/11 migrations.

myhemant’s picture

Thanks Jaypan
its working nice.

Thanks