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
701852e9
Commit
701852e9
authored
Jan 20, 2014
by
Luciano Baraglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AccessControl denyCallback call fix
parent
1181b7b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
AccessControl.php
framework/web/AccessControl.php
+4
-5
No files found.
framework/web/AccessControl.php
View file @
701852e9
...
@@ -108,9 +108,9 @@ class AccessControl extends ActionFilter
...
@@ -108,9 +108,9 @@ class AccessControl extends ActionFilter
return
true
;
return
true
;
}
elseif
(
$allow
===
false
)
{
}
elseif
(
$allow
===
false
)
{
if
(
isset
(
$rule
->
denyCallback
))
{
if
(
isset
(
$rule
->
denyCallback
))
{
call_user_func
(
$rule
->
denyCallback
,
$rule
);
call_user_func
(
$rule
->
denyCallback
,
$rule
,
$action
);
}
elseif
(
isset
(
$this
->
denyCallback
))
{
}
elseif
(
isset
(
$this
->
denyCallback
))
{
call_user_func
(
$this
->
denyCallback
,
$rule
);
call_user_func
(
$this
->
denyCallback
,
$rule
,
$action
);
}
else
{
}
else
{
$this
->
denyAccess
(
$user
);
$this
->
denyAccess
(
$user
);
}
}
...
@@ -118,9 +118,8 @@ class AccessControl extends ActionFilter
...
@@ -118,9 +118,8 @@ class AccessControl extends ActionFilter
}
}
}
}
if
(
isset
(
$this
->
denyCallback
))
{
if
(
isset
(
$this
->
denyCallback
))
{
call_user_func
(
$this
->
denyCallback
,
$rule
);
call_user_func
(
$this
->
denyCallback
,
$rule
,
$action
);
}
}
else
{
else
{
$this
->
denyAccess
(
$user
);
$this
->
denyAccess
(
$user
);
}
}
return
false
;
return
false
;
...
...
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