Hi every body ,
could i grant and rvoke permissions to user programatically
thank you all

Comments

j.somers’s picture

Sure, all the required information is stored in the role and users_roles table.

drudev’s picture

Thank you for this fast reply but really i'm looking for assigen one permission to specific user conditionally
for example access user profiles ,the user can do it for specific user and don't for another could you help me please.

rkdeveloper’s picture

its possible to apply permissions to roles not the users. if i understood your requirement correctly this cannot be done in drupal.

by
Ram

drudev’s picture

Ram i mean this apply the permission to user of course user has a role but how to do this programatically
grant and revoke
thanks .