Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
0a6df2ab
Commit
0a6df2ab
authored
2 years ago
by
Eric Bremner
Committed by
Kevin Paxman
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5989: coding standards
parent
750e3469
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!296
Feature/istwcms 5397 bibcite release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UwPermissions/UwPermissions.php
+3
-5
3 additions, 5 deletions
src/UwPermissions/UwPermissions.php
with
3 additions
and
5 deletions
src/UwPermissions/UwPermissions.php
+
3
−
5
View file @
0a6df2ab
...
@@ -378,12 +378,10 @@ class UwPermissions {
...
@@ -378,12 +378,10 @@ class UwPermissions {
// to the permissions array.
// to the permissions array.
if
(
!
empty
(
$perms_to_add
))
{
if
(
!
empty
(
$perms_to_add
))
{
// Step through each role and permissions
and add to the
// Step through each role and
add the
permissions
//
permissions
array.
//
to the
array.
foreach
(
$uw_roles
as
$uw_role
)
{
foreach
(
$uw_roles
as
$uw_role
)
{
foreach
(
$perms_to_add
as
$perm_to_add
)
{
$permissions
[
$uw_role
[
'name'
]]
=
$perms_to_add
;
$permissions
[
$uw_role
[
'name'
]]
=
$perms_to_add
;
}
}
}
}
}
...
...
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