Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
aba81ab9
Commit
aba81ab9
authored
15 years ago
by
Angie Byron
Browse files
Options
Downloads
Patches
Plain Diff
#480660
follow-up by catch: Code style changes and changelog entry.
parent
f179a802
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
modules/user/user.admin.inc
+3
-3
3 additions, 3 deletions
modules/user/user.admin.inc
profiles/default/default.profile
+6
-10
6 additions, 10 deletions
profiles/default/default.profile
with
11 additions
and
13 deletions
CHANGELOG.txt
+
2
−
0
View file @
aba81ab9
...
...
@@ -29,6 +29,8 @@ Drupal 7.0, xxxx-xx-xx (development version)
order can now be customised using the Views module.
* Added additional features to the default install profile, and implemented
a "slimmed down" install profile designed for developers.
* Added an administrator role which is assigned all permisions for
installed modules automatically.
* Image toolkits are now provided by modules (rather than requiring a manual
file copy to the includes directory).
* Added an edit tab to taxonomy term pages.
...
...
This diff is collapsed.
Click to expand it.
modules/user/user.admin.inc
+
3
−
3
View file @
aba81ab9
...
...
@@ -254,10 +254,10 @@ function user_admin_settings() {
// Administrative role option.
$form
[
'admin_role'
]
=
array
(
'#type'
=>
'fieldset'
,
'#title'
=>
t
(
'Administrator role'
),
'#title'
=>
t
(
'Administrator role'
),
);
// Do
n'
t allow users to set the anonymous or authenticated user roles as the
// Do
no
t allow users to set the anonymous or authenticated user roles as the
// administrator role.
$roles
=
user_roles
();
$roles
=
array_slice
(
$roles
,
2
,
NULL
,
TRUE
);
...
...
@@ -944,7 +944,7 @@ function user_modules_installed($modules) {
db_insert
(
'role_permission'
)
->
fields
(
array
(
'rid'
=>
$rid
,
'permission'
=>
$permission
,
'permission'
=>
$permission
,
))
->
execute
();
}
}
...
...
This diff is collapsed.
Click to expand it.
profiles/default/default.profile
+
6
−
10
View file @
aba81ab9
...
...
@@ -221,16 +221,12 @@ function default_profile_tasks(&$task, $url) {
variable_set
(
'user_admin_role'
,
$rid
);
// Assign all available permissions to this role.
foreach
(
module_implements
(
'perm'
)
as
$module
)
{
if
(
$permissions
=
module_invoke
(
$module
,
'perm'
))
{
foreach
(
array_keys
(
$permissions
)
as
$permission
)
{
db_insert
(
'role_permission'
)
->
fields
(
array
(
'rid'
=>
$rid
,
'permission'
=>
$permission
,
))
->
execute
();
}
}
foreach
(
module_invoke_all
(
'perm'
)
as
$key
=>
$value
)
{
db_insert
(
'role_permission'
)
->
fields
(
array
(
'rid'
=>
$rid
,
'permission'
=>
$key
,
))
->
execute
();
}
// Update the menu router information.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment