- Patch #221072 by Pancho: fixed access control check on the theme configuration page.
parent
4b6e9f40bd
commit
720f68b9d0
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue