Commit 720f68b9 authored by Dries's avatar Dries

- Patch #221072 by Pancho: fixed access control check on the theme configuration page.

parent 4b6e9f40
......@@ -514,7 +514,7 @@ function system_menu() {
* Menu item access callback - only admin or enabled themes can be accessed.
*/
function _system_themes_access($theme) {
return $theme->status || $theme->name == variable_get('admin_theme', '0');
return user_access('administer site configuration') && ($theme->status || $theme->name == variable_get('admin_theme', '0'));
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment