예제 #1
0
 /**
  * Handler for updating role topdown
  * @param \Nette\ArrayHash $values
  */
 public function updateRole(ArrayHash $values)
 {
     $role = new Role((array) $values);
     try {
         $this->roleService->updateRole($role);
     } catch (Exceptions\DataErrorException $ex) {
         $this->handleDataSave($role->getId(), "this", $ex);
     }
     $this->redirect('default');
 }