Skip to content

Commit 665b534

Browse files
author
Christopher Stebe
committed
renamed private const for all access
1 parent 61a14c4 commit 665b534

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

db/traits/ActiveRecordAccessTrait.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ trait ActiveRecordAccessTrait
3535
* Public / all access
3636
* @var string
3737
*/
38-
private static $_public = '*';
38+
private static $_all = '*';
3939

4040
/**
4141
* @return array with access field names
@@ -79,7 +79,7 @@ public static function find()
7979

8080
// access domain check
8181
if ($accessDomain) {
82-
$query->andWhere([$accessDomain => [\Yii::$app->language, self::$_public]]);
82+
$query->andWhere([$accessDomain => [\Yii::$app->language, self::$_all]]);
8383
}
8484
}
8585

@@ -198,7 +198,7 @@ public function beforeDelete()
198198
*/
199199
public static function allAccess()
200200
{
201-
return [self::$_public => self::$_public];
201+
return [self::$_all => self::$_all];
202202
}
203203

204204
/**

0 commit comments

Comments
 (0)