I want to set a different values for different users(Read/write permission) by using php not by a customizing (Drupal menu - > People -> permission).
1 Answer
Assuming you are interested in CiviCRM permissions rather than Drupal content, take a look at the Hooks section in the Developer guide, specifically the Permission Hooks subsection.
-
I am using drupal as CMS. Depending upon user login, it should show the data depending upon user role.How can I match the CMS and CRM user? Commented Nov 14, 2018 at 5:08
-
In that case, take a look at docs.civicrm.org/sysadmin/en/latest/integration/drupal/… to sync between a Drupal Role and CiviCRM Group– Aidan ♦Commented Nov 14, 2018 at 12:26