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;