Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+6 -2
View File
@@ -134,10 +134,14 @@ $userIsAllowInProject = TicketManager::userIsAllowInProject($userInfo, $projectI
$allowEdition = $ticket['ticket']['assigned_last_user'] == $user_id ||
$ticket['ticket']['sys_insert_user_id'] == $user_id ||
$isAdmin;
$allowCategory = TicketManager::userIsAssignedToCategory(
$user_id,
$ticket['ticket']['category_id']
);
if (false === $userIsAllowInProject) {
// make sure it's either a user assigned to this ticket, or the reporter, or and admin
if (false === $allowEdition) {
// make sure it's either a user assigned to this ticket, the reporter, an admin or the category manager
if (false === $allowEdition && false === $allowCategory) {
api_not_allowed(true);
}
}