From 4ea512c141ce9edfedba45eebada929029a257fb Mon Sep 17 00:00:00 2001 From: dvaganov Date: Thu, 9 Jun 2016 09:31:20 +0300 Subject: [PATCH] Fixed missed 'static' modifier. --- models/Access.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Access.php b/models/Access.php index 863bf5f..99e3d27 100644 --- a/models/Access.php +++ b/models/Access.php @@ -91,7 +91,7 @@ public static function find() * @param \app\models\Calendar $model * @return int Access status */ - public function check($model) + public static function check($model) { $result = self::ACCESS_NO; $currentUser = \Yii::$app->user->id;