Commit a8e1fb43 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#191914 by chx: admin check was missing from menu user_register_access()

parent 6f178ad6
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment