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
a7a86cd2
Commit
a7a86cd2
authored
Apr 22, 2004
by
Kjartan
Browse files
- Changing permissions on user menus.
parent
8fa7d74d
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/user.module
View file @
a7a86cd2
...
...
@@ -543,15 +543,15 @@ function user_link($type) {
global
$user
;
if
(
$type
==
'system'
)
{
$access
=
$user
->
uid
;
menu
(
'user'
,
t
(
'my account'
),
$access
?
'user_page'
:
MENU_DENIED
,
8
);
menu
(
'user/edit'
,
t
(
'edit account'
),
$access
?
'user_page'
:
MENU_DENIED
,
0
);
menu
(
'logout'
,
t
(
'log out'
),
$access
?
'user_logout'
:
MENU_DENIED
,
10
);
if
(
!
$user
->
uid
)
{
menu
(
'user
/login'
,
t
(
'log in
'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'user/
password'
,
t
(
'e-mail new password'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'
user/register'
,
t
(
'create new acc
ou
n
t'
),
'user_page'
,
0
,
MENU_HIDE
);
if
(
$user
->
uid
)
{
menu
(
'user'
,
t
(
'my account'
),
'user_page'
,
0
);
menu
(
'user/edit'
,
t
(
'edit account'
),
'user_page'
,
0
);
menu
(
'logout'
,
t
(
'log out'
),
'user_logout'
,
10
);
}
else
{
menu
(
'user
'
,
t
(
'user
'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'user/
edit'
,
t
(
'edit account'
),
MENU_DENIED
);
menu
(
'
logout'
,
t
(
'log
out'
),
MENU_DENIED
);
}
$access
=
user_access
(
'administer users'
);
...
...
modules/user/user.module
View file @
a7a86cd2
...
...
@@ -543,15 +543,15 @@ function user_link($type) {
global
$user
;
if
(
$type
==
'system'
)
{
$access
=
$user
->
uid
;
menu
(
'user'
,
t
(
'my account'
),
$access
?
'user_page'
:
MENU_DENIED
,
8
);
menu
(
'user/edit'
,
t
(
'edit account'
),
$access
?
'user_page'
:
MENU_DENIED
,
0
);
menu
(
'logout'
,
t
(
'log out'
),
$access
?
'user_logout'
:
MENU_DENIED
,
10
);
if
(
!
$user
->
uid
)
{
menu
(
'user
/login'
,
t
(
'log in
'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'user/
password'
,
t
(
'e-mail new password'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'
user/register'
,
t
(
'create new acc
ou
n
t'
),
'user_page'
,
0
,
MENU_HIDE
);
if
(
$user
->
uid
)
{
menu
(
'user'
,
t
(
'my account'
),
'user_page'
,
0
);
menu
(
'user/edit'
,
t
(
'edit account'
),
'user_page'
,
0
);
menu
(
'logout'
,
t
(
'log out'
),
'user_logout'
,
10
);
}
else
{
menu
(
'user
'
,
t
(
'user
'
),
'user_page'
,
0
,
MENU_HIDE
);
menu
(
'user/
edit'
,
t
(
'edit account'
),
MENU_DENIED
);
menu
(
'
logout'
,
t
(
'log
out'
),
MENU_DENIED
);
}
$access
=
user_access
(
'administer users'
);
...
...
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