Beispiel #1
0
 public function execute()
 {
     $catId = rex_request('category-id', 'int');
     // check permissions
     if (!rex::getUser()->getComplexPerm('structure')->hasCategoryPerm($catId)) {
         throw new rex_api_exception('user has no permission for this category!');
     }
     $result = new rex_api_result(true, rex_category_service::deleteCategory($catId));
     return $result;
 }