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
f46f6abe
Commit
f46f6abe
authored
Dec 29, 2006
by
Neil Drumm
Browse files
#105698
by dww. Edit permissions links for all roles, including anonymous and authenticated.
parent
98529b93
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
f46f6abe
...
...
@@ -1968,11 +1968,12 @@ function user_admin_role_submit($form_id, $form_values) {
function
theme_user_admin_new_role
(
$form
)
{
$header
=
array
(
t
(
'Name'
),
array
(
'data'
=>
t
(
'Operations'
),
'colspan'
=>
2
));
foreach
(
user_roles
()
as
$rid
=>
$name
)
{
$edit_permissions
=
l
(
t
(
'edit permissions'
),
'admin/user/access/'
.
$rid
);
if
(
!
in_array
(
$rid
,
array
(
DRUPAL_ANONYMOUS_RID
,
DRUPAL_AUTHENTICATED_RID
)))
{
$rows
[]
=
array
(
$name
,
l
(
t
(
'edit
permissions
'
),
'admin/user/
access
/'
.
$rid
),
l
(
t
(
'edit role'
),
'admin/user/roles/edit/'
.
$rid
)
);
$rows
[]
=
array
(
$name
,
l
(
t
(
'edit
role
'
),
'admin/user/
roles/edit
/'
.
$rid
),
$edit_permissions
);
}
else
{
$rows
[]
=
array
(
$name
,
array
(
'data'
=>
t
(
'locked'
),
'colspan'
=>
2
)
);
$rows
[]
=
array
(
$name
,
t
(
'locked'
),
$edit_permissions
);
}
}
$rows
[]
=
array
(
drupal_render
(
$form
[
'name'
]),
array
(
'data'
=>
drupal_render
(
$form
[
'submit'
]),
colspan
=>
2
));
...
...
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