filters\AccessControl denyAccess()

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.

doc_Yii
2016-10-30 17:02:21
Comments
Leave a Comment

Please login to continue.