Hi,

First of all, thanks for your support.

I created a module that creates some form.
A user can reach the form via the secondary menu (maybe it can help to the solution).
I want that only in my subdomain, anonymous user will not have access to it.
in my default site i want all users roles to have access to this form (again, it is generated by a module that i wrote).

How can i do it?

Comments

chenop’s picture

Status: Active » Closed (fixed)

Solved by implementing access callback for this module.

used domain_get_domain() to get the active domain and user_access() to identify if user role got the right access.