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
21910c61
Commit
21910c61
authored
Jul 17, 2014
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #4310: code cleanup
parent
e54fc6f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
DbManager.php
framework/rbac/DbManager.php
+0
-7
No files found.
framework/rbac/DbManager.php
View file @
21910c61
...
@@ -482,10 +482,6 @@ class DbManager extends BaseManager
...
@@ -482,10 +482,6 @@ class DbManager extends BaseManager
return
null
;
return
null
;
}
}
if
(
!
isset
(
$row
[
'data'
])
||
(
$data
=
@
unserialize
(
$row
[
'data'
]))
===
false
)
{
$data
=
null
;
}
return
new
Assignment
([
return
new
Assignment
([
'userId'
=>
$row
[
'user_id'
],
'userId'
=>
$row
[
'user_id'
],
'roleName'
=>
$row
[
'item_name'
],
'roleName'
=>
$row
[
'item_name'
],
...
@@ -504,9 +500,6 @@ class DbManager extends BaseManager
...
@@ -504,9 +500,6 @@ class DbManager extends BaseManager
$assignments
=
[];
$assignments
=
[];
foreach
(
$query
->
all
(
$this
->
db
)
as
$row
)
{
foreach
(
$query
->
all
(
$this
->
db
)
as
$row
)
{
if
(
!
isset
(
$row
[
'data'
])
||
(
$data
=
@
unserialize
(
$row
[
'data'
]))
===
false
)
{
$data
=
null
;
}
$assignments
[
$row
[
'item_name'
]]
=
new
Assignment
([
$assignments
[
$row
[
'item_name'
]]
=
new
Assignment
([
'userId'
=>
$row
[
'user_id'
],
'userId'
=>
$row
[
'user_id'
],
'roleName'
=>
$row
[
'item_name'
],
'roleName'
=>
$row
[
'item_name'
],
...
...
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