Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
222
Merge Requests
222
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
720f68b9
Commit
720f68b9
authored
Feb 14, 2008
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#221072
by Pancho: fixed access control check on the theme configuration page.
parent
4b6e9f40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modules/system/system.module
modules/system/system.module
+1
-1
No files found.
modules/system/system.module
View file @
720f68b9
...
...
@@ -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'
)
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment