protected function addRules()
    {
        try {
            (new Rbac())->add($this->authManager);
            return $this->returnSuccess(Yii::t('podium/flash', 'Access roles have been created.'));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during access roles creating')
            );
        }
    }
protected function addRules()
    {
        try {
            (new Rbac())->add($this->authManager);
            return $this->returnSuccess(Yii::t('podium/flash', 'Access roles have been created.'));
        } catch (Exception $e) {
            return $this->returnError($e->getMessage(), __METHOD__,
                Yii::t('podium/flash', 'Error during access roles creating')
            );
        }
    }
protected function addRules ( ) { try { ( new Rbac ( ) ) -> add ( $ this -> authManager ) ; return $ this -> returnSuccess ( Yii :: t ( 'podium/flash' , 'Access roles have been created.' ) ) ; } catch ( Exception $ e ) { return $ this -> returnError ( $ e -> getMessage ( ) , __METHOD__ , Yii :: t ( 'podium/flash' , 'Error during access roles creating' ) ) ; } }
Adds permission rules.
@return string result message.
Adds permission rules .