I seems strange that I did not find any issues regarding this issue but Admin theme is not working for other roles than administrator.
I even removed the permission from administrator role and then user in this role could still use admin theme.
Looks like this permission is hard coded into "administration" role and that "Access administration theme" is not even working.
Comments
Comment #1
iztok commentedI debugged the code a bit and came to this conclusions:
- When visiting pages like /admin/* admin_menu module does not retun admin theme, but the default "admin theme" in D7 core does.
- If you put the following paths in the "USE ADMINISTRATION THEME ON THE FOLLOWING PAGES" list:
The code from the admin_theme will run and other roles than "administrator" will be able to use administration theme. This is new in D7 because in D6 there was no default admin theme management in core.
Comment #2
akanik commentedIztok, I am having the same issue. Thanks for the info, but where is the field "USE ADMINISTRATION THEME ON THE FOLLOWING PAGES"?
Comment #3
aneeshaider commentedyou will have to install Administration theme module (http://drupal.org/project/admin_theme) then you will get the field "USE ADMINISTRATION THEME ON THE FOLLOWING PAGES" in module configuration page.
Comment #4
jkaine commentedaneeshaider, thanks for the note on the admin theme module. That's a life saver.
Comment #5
ericaordinary commentedAneeshaider, could you confirm which administration page this field appears in, and that it is working in D7? I've enabled the Admin Theme module but can't see that field on the theme configuration page.
Comment #6
pelicani commentedWe were trying to find the Administration Theme setting pages in D7 too.
They were found at the bottom of this page...
http://example.com/admin/appearance
Comment #7
erok415 commentedI searched for how to enable the admin theme for different roles too and found that you can enable it here yourdomain.com/admin/people/permissions/list.
Just enable it for the roles that you want to view the admin theme. I test it and it works perfectly.
Thanks to item post #6 for getting me pointed in the right direction. BTW, post #6 didn't work for me even though the settings were there and already set.
E.
Comment #8
spenoir commentedUpdated list of admin theme paths:
Comment #9
forestmars commentedIf you are trying to give non-admin users access to the dashboard, and being thwarted by the surprising admin theme behaviour described above, here is a workaround which does not require any additional modules such as Admin Theme.