protected function validateEditUserRole()
    {
        $this->setSubmitted('role');
        $this->setSubmittedBool('status');
        $this->setSubmitted('update', $this->data_role);

        if (!$this->getSubmitted('permissions')) {
            $this->setSubmitted('permissions', array());
        }

        $this->validateComponent('user_role');

        return !$this->hasErrors();
    }