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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Rotua Panjaitan
yii2
Commits
cc4d4933
Commit
cc4d4933
authored
Mar 26, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed undefined variable problem in AccessControl
parent
0b2aafc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AccessControl.php
framework/web/AccessControl.php
+3
-3
No files found.
framework/web/AccessControl.php
View file @
cc4d4933
...
@@ -64,6 +64,7 @@ class AccessControl extends ActionFilter
...
@@ -64,6 +64,7 @@ class AccessControl extends ActionFilter
* ~~~
* ~~~
*
*
* where `$rule` is this rule, and `$action` is the current [[Action|action]] object.
* where `$rule` is this rule, and `$action` is the current [[Action|action]] object.
* `$rule` will be `null` if access is denied because none of the rules matched.
*/
*/
public
$denyCallback
;
public
$denyCallback
;
/**
/**
...
@@ -79,6 +80,7 @@ class AccessControl extends ActionFilter
...
@@ -79,6 +80,7 @@ class AccessControl extends ActionFilter
*/
*/
public
$rules
=
[];
public
$rules
=
[];
/**
/**
* Initializes the [[rules]] array by instantiating rule objects from configurations.
* Initializes the [[rules]] array by instantiating rule objects from configurations.
*/
*/
...
@@ -114,16 +116,14 @@ class AccessControl extends ActionFilter
...
@@ -114,16 +116,14 @@ class AccessControl extends ActionFilter
}
else
{
}
else
{
$this
->
denyAccess
(
$user
);
$this
->
denyAccess
(
$user
);
}
}
return
false
;
return
false
;
}
}
}
}
if
(
isset
(
$this
->
denyCallback
))
{
if
(
isset
(
$this
->
denyCallback
))
{
call_user_func
(
$this
->
denyCallback
,
$rule
,
$action
);
call_user_func
(
$this
->
denyCallback
,
null
,
$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