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

merge-requests/26/head
Dries Buytaert 2008-02-14 18:34:21 +00:00
parent 4b6e9f40bd
commit 720f68b9d0
1 changed files with 1 additions and 1 deletions

View File

@ -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'));
}
/**