Gruppen können angelegt und bearbeitet werden

Teili können angelegt werden
This commit is contained in:
2024-03-23 20:46:44 +01:00
parent abc3a2a0a0
commit 5e766bc2e5
27 changed files with 608 additions and 43 deletions

View File

@ -0,0 +1,18 @@
<?php
use Bdp\Modules\Gruppen\Controllers\MainController;
class CreateGroupAction
{
public static function execute(array $newData)
{
global $dbHandler;
if (!current_user_can('create_groups')) {
kompass_print_message_box(__('You are not allowed to create a group', BDP_LV_PLUGIN_SLUG), 'error');
}
global $dbHandler;
$dbHandler->insertRows(MainController::KOMPASS_STAMMESGRUPPEN_GRUPPEN, $newData);
kompass_print_message_box(__('The group was created.', BDP_LV_PLUGIN_SLUG));
}
}