Upload via GUI (335 Dateien)
This commit is contained in:
@@ -297,6 +297,14 @@ function api_is_following(int $ticketId): bool
|
||||
return isset($mine[$ticketId]);
|
||||
}
|
||||
|
||||
/** Cc-Empfänger eines Tickets für die Apps. */
|
||||
function api_ticket_collaborators(PDO $pdo, int $ticketId): array
|
||||
{
|
||||
$s = $pdo->prepare('SELECT id, email, name FROM ticket_collaborators WHERE ticket_id = ? ORDER BY created_at, id');
|
||||
$s->execute([$ticketId]);
|
||||
return array_map(fn($r) => ['id' => (int) $r['id'], 'email' => (string) $r['email'], 'name' => (string) ($r['name'] ?? '')], $s->fetchAll());
|
||||
}
|
||||
|
||||
function api_add_ticket_message(PDO $pdo, array $staff, array $ticket, string $type, string $rawMessage, ?string $setStatus, ?string $signatureChoice = null): int
|
||||
{
|
||||
$permission = $type === 'note' ? 'post_note' : 'reply_ticket';
|
||||
|
||||
Reference in New Issue
Block a user