Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
8ac8d487
Commit
8ac8d487
authored
Apr 16, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #3128: Fixed the bug that `defaultRoles` set in RBAC manager was not working as specified
parent
8ca7fa8d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
CHANGELOG.md
framework/CHANGELOG.md
+1
-0
DbManager.php
framework/rbac/DbManager.php
+1
-1
PhpManager.php
framework/rbac/PhpManager.php
+1
-1
No files found.
framework/CHANGELOG.md
View file @
8ac8d487
...
@@ -6,6 +6,7 @@ Yii Framework 2 Change Log
...
@@ -6,6 +6,7 @@ Yii Framework 2 Change Log
-
Bug #3066:
`yii\db\mssql\Schema::getTableSchema()`
should return null when the table does not exist (qiangxue)
-
Bug #3066:
`yii\db\mssql\Schema::getTableSchema()`
should return null when the table does not exist (qiangxue)
-
Bug #3091: Fixed inconsistent treatment of
`Widget::run()`
when a widget is used as a container and as a self-contained object (qiangxue)
-
Bug #3091: Fixed inconsistent treatment of
`Widget::run()`
when a widget is used as a container and as a self-contained object (qiangxue)
-
Bug #3128: Fixed the bug that
`defaultRoles`
set in RBAC manager was not working as specified (qiangxue)
-
Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
-
Enh #3103: debugger panel is now not displayed when printing a page (githubjeka)
-
Enh #3108: Added
`yii\debug\Module::enableDebugLogs`
to disable logging debug logs by default (qiangxue)
-
Enh #3108: Added
`yii\debug\Module::enableDebugLogs`
to disable logging debug logs by default (qiangxue)
-
Enh: Added support for using sub-queries when building a DB query with
`IN`
condition (qiangxue)
-
Enh: Added support for using sub-queries when building a DB query with
`IN`
condition (qiangxue)
...
...
framework/rbac/DbManager.php
View file @
8ac8d487
...
@@ -104,7 +104,7 @@ class DbManager extends BaseManager
...
@@ -104,7 +104,7 @@ class DbManager extends BaseManager
return
false
;
return
false
;
}
}
if
(
isset
(
$
this
->
defaultRoles
[
$itemName
])
||
isset
(
$assignments
[
$itemName
]
))
{
if
(
isset
(
$
assignments
[
$itemName
])
||
in_array
(
$itemName
,
$this
->
defaultRoles
))
{
return
true
;
return
true
;
}
}
...
...
framework/rbac/PhpManager.php
View file @
8ac8d487
...
@@ -117,7 +117,7 @@ class PhpManager extends BaseManager
...
@@ -117,7 +117,7 @@ class PhpManager extends BaseManager
return
false
;
return
false
;
}
}
if
(
isset
(
$
this
->
defaultRoles
[
$itemName
])
||
isset
(
$assignments
[
$itemName
]
))
{
if
(
isset
(
$
assignments
[
$itemName
])
||
in_array
(
$itemName
,
$this
->
defaultRoles
))
{
return
true
;
return
true
;
}
}
...
...
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