denyAccess() protected method
Denies the access of the user.
The default implementation will redirect the user to the login page if he is a guest; if the user is already logged, a 403 HTTP exception will be thrown.
| protected void denyAccess ( $user ) | ||
|---|---|---|
| $user | yii\web\User |
The current user |
| throws | yii\web\ForbiddenHttpException |
if the user is already logged in. |
Please login to continue.