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
2a561f3b
Commit
2a561f3b
authored
Jul 29, 2005
by
Steven Wittens
Browse files
-
#16705
: Make user_access always return a boolean.
parent
e4096e14
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
2a561f3b
...
...
@@ -335,7 +335,7 @@ function user_access($string, $account = NULL) {
}
if
(
isset
(
$perm
[
$account
->
uid
]))
{
return
str
str
(
$perm
[
$account
->
uid
],
"
$string
, "
);
return
str
pos
(
$perm
[
$account
->
uid
],
"
$string
, "
)
!==
FALSE
;
}
return
FALSE
;
...
...
modules/user/user.module
View file @
2a561f3b
...
...
@@ -335,7 +335,7 @@ function user_access($string, $account = NULL) {
}
if
(
isset
(
$perm
[
$account
->
uid
]))
{
return
str
str
(
$perm
[
$account
->
uid
],
"
$string
, "
);
return
str
pos
(
$perm
[
$account
->
uid
],
"
$string
, "
)
!==
FALSE
;
}
return
FALSE
;
...
...
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