Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
8bc39e90
Commit
8bc39e90
authored
May 19, 2003
by
Dries
Browse files
- Undid my changes to user_access().
parent
8205b626
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
8bc39e90
...
...
@@ -215,7 +215,7 @@ function user_access($string) {
** in a static variable.
*/
if
(
isset
(
$perm
)
)
{
if
(
!
$perm
)
{
if
(
$user
->
uid
)
{
$perm
=
db_result
(
db_query
(
"SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '%s'"
,
$user
->
role
),
0
);
}
...
...
modules/user/user.module
View file @
8bc39e90
...
...
@@ -215,7 +215,7 @@ function user_access($string) {
** in a static variable.
*/
if
(
isset
(
$perm
)
)
{
if
(
!
$perm
)
{
if
(
$user
->
uid
)
{
$perm
=
db_result
(
db_query
(
"SELECT p.perm FROM role r, permission p WHERE r.rid = p.rid AND name = '%s'"
,
$user
->
role
),
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