To make user id, taxonomy id or node id permissions in paths

Comments

Docc’s picture

Status: Active » Postponed (maintainer needs more info)

Not seeing a user case here. The module uses the menu access system wich isn't build real time. So node tokens etc wont work.

Maybe you're looking for the wildcard option?

Anonymous’s picture

Thanks for the respons.

At this moment I made a setup with the wildcard, but it gives too much power to users.

I am developing a site with domain access (+ domain-theme). The administrator of a (sub)domain can pick his own theme and make his own theme setting, access is denied for other domain themes and settings.

At the moment my custom permision setup is "admin/structure/domain/theme/*": with the wildcard. The problem is that a domain administrator has access to the domain setup for all subdomains. Domain access works with tokens, so when I could change the wildcard in de domain number (a domain access token) then it solves this issue.

I know, the "Domain acces" module should have his own theme/domain access permissions setup, it has not, so Custom Permissions came in my mind.

Maybe the use of tokens in Costum Permissions could also be handy for access permissions of views with arguments or in other situations where you want to control the access depending on tokens.

.

Docc’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Token integration wont solve your problem.
You have to fill in the domain id yourself for every domain you want a permission for ex: admin/structure/domain/theme/5, admin/structure/domain/theme/4 etc

Or create a menu alter function yourself.

Anonymous’s picture

Menu token takes care of that: http://drupal.org/project/menu_token. I have made a menupath setup with admin/structure/domain/theme/[current-domain:id]