1

I am using the hook_civicrm_tabset for rename the tab name. Tab rename code is working properly. But i want to add condition if user is admin then rename the tab name. How can i check user is admin in hook_civicrm_tabset hook.

1

You could use something like CRM_Core_Permission::check('administer CiviCRM') which returns true or false depending on if they have that permission.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.