summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-02-14 18:34:21 +0000
committerDries Buytaert <dries@buytaert.net>2008-02-14 18:34:21 +0000
commit720f68b9d00a7b017a0be4633a085dfb32f9fbf5 (patch)
treee01c76cc2a0d5377736c1b094de8e342ef9f4cc5 /modules
parent4b6e9f40bd530d3b1534ebe9abe2f71399491718 (diff)
downloadbrdo-720f68b9d00a7b017a0be4633a085dfb32f9fbf5.tar.gz
brdo-720f68b9d00a7b017a0be4633a085dfb32f9fbf5.tar.bz2
- Patch #221072 by Pancho: fixed access control check on the theme configuration page.
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'));
}
/**