Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
aba81ab9
Commit
aba81ab9
authored
Jun 04, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#480660
follow-up by catch: Code style changes and changelog entry.
parent
f179a802
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
CHANGELOG.txt
CHANGELOG.txt
+2
-0
modules/user/user.admin.inc
modules/user/user.admin.inc
+3
-3
profiles/default/default.profile
profiles/default/default.profile
+6
-10
No files found.
CHANGELOG.txt
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.
...
...
modules/user/user.admin.inc
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
();
}
}
...
...
profiles/default/default.profile
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.
...
...
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