Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
a8e1fb43
Commit
a8e1fb43
authored
Dec 27, 2007
by
Gábor Hojtsy
Browse files
#191914
by chx: admin check was missing from menu user_register_access()
parent
6f178ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
a8e1fb43
...
...
@@ -831,7 +831,7 @@ function user_is_logged_in() {
}
function
user_register_access
()
{
return
!
$GLOBALS
[
'user'
]
->
uid
&&
variable_get
(
'user_register'
,
1
);
return
user_is_anonymous
()
&&
variable_get
(
'user_register'
,
1
);
}
function
user_view_access
(
$account
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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