summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index bfba1446f..b4354e9a5 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -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'));
}
/**