Problem with creating a user-group, it does not create the permissions for the new user group and generates a 500 error.

This commit is contained in:
2026-05-15 22:08:41 +02:00
parent 504b7ba12b
commit dfb3dd8bd9
2 changed files with 3 additions and 2 deletions

View File

@@ -34,8 +34,8 @@ class API_usergroups extends API
$query = "INSERT INTO vc_user_groups (user_group_uuid, user_group_name, user_group_slugify, user_group_weight, user_group_type, user_group_create_timestamp) VALUES (UUID(), ?, ?, ?, ?, ?)";
$stmt = $this->prepareStatement($query);
$stmt->bind_param("ssisi", $this->data['user_group_name'], $this->data['user_group_slugify'], $this->data['user_group_weight'], $this->data['user_group_type'], time());
$timestamp = time();
$stmt->bind_param("ssisi", $this->data['user_group_name'], $this->data['user_group_slugify'], $this->data['user_group_weight'], $this->data['user_group_type'], $timestamp);
$this->executeStatement($stmt);
$user_group = $this->getUsergroup();
$user_group_uuid = $user_group[0]['user_group_uuid'];