Beispiel #1
0
 /**
  * When deleting a group, need to delete all
  * its children too.
  *
  */
 public function deletegroupAction()
 {
     $model = $this->byId(null, 'UserGroup');
     if ($model != null) {
         try {
             $this->groupService->deleteGroup($model);
         } catch (NonEmptyGroupException $neg) {
             $this->flash("Group is not empty and cannot be deleted");
         }
     }
     $this->redirect('admin', 'grouplist');
 }