I am theming an administrative page.
There are 2 roles (admin, role2) that have access to all the administrative pages. Now, I want to restrict the access to some URLs to the role2 role: Users with that role should be redirected to other pages. How is this done using the template?
I know I can use permissions to restrict the access, but I want to restrict the access basing on the URL being visited.