original_string: 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')
              );
          }
      }
code: 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')
              );
          }
      }
code_tokens: 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' ) ) ; } }
docstring: Adds permission rules.
  @return string result message.
docstring_tokens: Adds permission rules .