mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #4640 from memdev/fix-permission-undefined-var
BUG: Permission::checkMember() use of undefined variable $codes
This commit is contained in:
commit
89571d92d7
@ -199,7 +199,7 @@ class Permission extends DataObject implements TemplateGlobalProvider {
|
|||||||
|
|
||||||
// Code filters
|
// Code filters
|
||||||
$codeParams = is_array($code) ? $code : array($code);
|
$codeParams = is_array($code) ? $code : array($code);
|
||||||
$codeClause = DB::placeholders($codes);
|
$codeClause = DB::placeholders($codeParams);
|
||||||
$adminParams = (self::$admin_implies_all) ? array('ADMIN') : array();
|
$adminParams = (self::$admin_implies_all) ? array('ADMIN') : array();
|
||||||
$adminClause = (self::$admin_implies_all) ? ", ?" : '';
|
$adminClause = (self::$admin_implies_all) ? ", ?" : '';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user