Merge branch 'hotfix' into develop
This commit is contained in:
commit
a2f52ac27d
3 changed files with 8 additions and 6 deletions
|
|
@ -1,3 +1,6 @@
|
|||
### 12.10.2022 -> 1.2.3
|
||||
- Hotfixed regular users could not create tickets anymore
|
||||
|
||||
### 01.07.2022 -> 1.2.2
|
||||
- Fixed CSP directives
|
||||
- Fixed multiples bugs
|
||||
|
|
|
|||
|
|
@ -100,15 +100,14 @@ class StoreTicket extends FormRequest
|
|||
'file_ticket' => 'mimes:jpeg,jpg,png,pdf|max:2048',
|
||||
'file_ticket2' => 'mimes:jpeg,jpg,png,pdf|max:2048',
|
||||
'is_internal' => 'required|boolean',
|
||||
'labels' => [
|
||||
// phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.FoundInExtendedClassBeforeLastUsed
|
||||
'sometimes', 'array', function ($attribute, $value, $fail) use ($user) {
|
||||
'labels' => 'sometimes|array',
|
||||
'labels.*' => [
|
||||
'required', 'exists:labels,id', function ($attribute, $value, $fail) use ($user) {
|
||||
if (!$user->can('assignLabels', Ticket::class)) {
|
||||
$fail(trans('Vous n\'êtes pas autorisé à modifier cette valeur'));
|
||||
}
|
||||
}
|
||||
],
|
||||
'labels.*' => 'required|exists:labels,id'
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ldcweb/supportweb",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"type": "project",
|
||||
"description": "The Laravel Framework.",
|
||||
"keywords": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue