update license

This commit is contained in:
2020-10-21 08:42:03 +07:00
parent 9112eaaff9
commit 88ff9d32bd
13 changed files with 30 additions and 20 deletions

View File

@@ -25,6 +25,8 @@ class DeviceController 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']);
}