Hi every body , could i grant and rvoke permissions to user programatically thank you all
Sure, all the required information is stored in the role and users_roles table.
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.
its possible to apply permissions to roles not the users. if i understood your requirement correctly this cannot be done in drupal.
by Ram
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 .
Comments
Sure, all the required
Sure, all the required information is stored in the role and users_roles table.
thanks
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.
you can apply permissions to roles not the users
its possible to apply permissions to roles not the users. if i understood your requirement correctly this cannot be done in drupal.
by
Ram
thank you all
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 .