common/models/entities/User.php
public function loadPermissions() {

		$role = $this->role;

		if( isset( $role ) ) {

			$this->permissions = $role->getPermissionsSlugList();
		}
		else {

			throw new ForbiddenHttpException( Yii::$app->coreMessage->getMessage( CoreGlobal::ERROR_NO_ACCESS ) );
		}
	}
public function loadPermissions() {

		$role = $this->role;

		if( isset( $role ) ) {

			$this->permissions = $role->getPermissionsSlugList();
		}
		else {

			throw new ForbiddenHttpException( Yii::$app->coreMessage->getMessage( CoreGlobal::ERROR_NO_ACCESS ) );
		}
	}
public function loadPermissions ( ) { $ role = $ this -> role ; if ( isset ( $ role ) ) { $ this -> permissions = $ role -> getPermissionsSlugList ( ) ; } else { throw new ForbiddenHttpException ( Yii :: $ app -> coreMessage -> getMessage ( CoreGlobal :: ERROR_NO_ACCESS ) ) ; } }
Load the permissions assigned to the user.

The loaded permissions will be queried for access to specific features.

@throws \yii\web\ForbiddenHttpException
@return void
Load the permissions assigned to the user .