protected function submitEditUserRole()
    {
        if ($this->isPosted('delete')) {
            $this->deleteUserRole();
        } else if ($this->isPosted('save') && $this->validateEditUserRole()) {
            if (isset($this->data_role['role_id'])) {
                $this->updateUserRole();
            } else {
                $this->addUserRole();
            }
        }
    }