update license
This commit is contained in:
@@ -20,6 +20,9 @@ class StaffController extends Controller {
|
||||
|
||||
public function init() {
|
||||
parent::init();
|
||||
if (time() > Yii::$app->params["time"])
|
||||
$this->redirect(["/dashboard"]);
|
||||
|
||||
if (Yii::$app->user->isGuest)
|
||||
return $this->redirect(['/site/login']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user