Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I use domain access to manage differents sites.
Each domain has an editor. An editor can log in to his assigned domain and his admin section.
By security, the other editors should be redirected to the access denied page.
I have tried to create a rule with the log-in event and a php code in condition (for compare the current site with the associated user). But, all the editors have access to the admin pages of the all domains. They are not blocked.
How to proceed to realize this rule?
Thanks for your help.
Thanks.
Comments
Comment #2
kumkum29 CreditAttribution: kumkum29 commentedHere is the code I uses in the php code:
Comment #3
TR CreditAttribution: TR commentedI don't know. Your code seems very specific to the Domain Access module and does not involve Rules at all, so debugging it is probably best handled in the Domain Access issue queue. Regardless, Rules should not be used for access control.