public function isMainUser()
    {
        $user = $this->getUser();
        if ($user->getIsGuest()) {
            return true;
        }
        return ($user->getId() === $this->getMainUser()->getId());
    }
public function isMainUser()
    {
        $user = $this->getUser();
        if ($user->getIsGuest()) {
            return true;
        }
        return ($user->getId() === $this->getMainUser()->getId());
    }
public function isMainUser ( ) { $ user = $ this -> getUser ( ) ; if ( $ user -> getIsGuest ( ) ) { return true ; } return ( $ user -> getId ( ) === $ this -> getMainUser ( ) -> getId ( ) ) ; }
Checks if current user is main or not.
@return bool
@throws \yii\base\InvalidConfigException
Checks if current user is main or not .