mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Permission::checkMember() use of undefined variable $codes
This commit is contained in:
parent
a964e7636e
commit
5224fc460c
@ -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