framework/rbac/PhpManager.php
protected function removeRule($rule)
    {
        if (isset($this->rules[$rule->name])) {
            unset($this->rules[$rule->name]);
            foreach ($this->items as $item) {
                if ($item->ruleName === $rule->name) {
                    $item->ruleName = null;
                }
            }
            $this->saveRules();
            return true;
        }

        return false;
    }
protected function removeRule($rule)
    {
        if (isset($this->rules[$rule->name])) {
            unset($this->rules[$rule->name]);
            foreach ($this->items as $item) {
                if ($item->ruleName === $rule->name) {
                    $item->ruleName = null;
                }
            }
            $this->saveRules();
            return true;
        }

        return false;
    }
protected function removeRule ( $ rule ) { if ( isset ( $ this -> rules [ $ rule -> name ] ) ) { unset ( $ this -> rules [ $ rule -> name ] ) ; foreach ( $ this -> items as $ item ) { if ( $ item -> ruleName === $ rule -> name ) { $ item -> ruleName = null ; } } $ this -> saveRules ( ) ; return true ; } return false ; }
{@inheritdoc}
{