Sicherheitsupdate nach Audit (0.29.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m50s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m34s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m45s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m30s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 7m7s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 7m9s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m8s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m5s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 48s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m5s
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a37895a16a
commit
f1202bea08
226 changed files with 1952 additions and 450 deletions
|
|
@ -4,6 +4,7 @@ namespace Inhaus\Plugins\Stellen;
|
|||
|
||||
use App\Models\User;
|
||||
use App\Notifications\PortalNotification;
|
||||
use App\Plugins\PluginAccess;
|
||||
use Illuminate\Support\Facades\Notification;
|
||||
use Inhaus\Plugins\Stellen\Models\JobPosting;
|
||||
|
||||
|
|
@ -27,7 +28,12 @@ class Announcer
|
|||
'briefcase',
|
||||
);
|
||||
|
||||
User::query()->active()->whereKeyNot($posting->created_by ?? 0)->chunkById(500, fn ($users) => Notification::send($users, $notification));
|
||||
// Nicht an Rollen, die vom Modul „Stellen“ ausgeschlossen sind
|
||||
$excluded = app(PluginAccess::class)->excludedRoles('stellen');
|
||||
|
||||
User::query()->active()->whereKeyNot($posting->created_by ?? 0)
|
||||
->when($excluded !== [], fn ($q) => $q->whereDoesntHave('roles', fn ($r) => $r->whereIn('roles.id', $excluded)))
|
||||
->chunkById(500, fn ($users) => Notification::send($users, $notification));
|
||||
}
|
||||
|
||||
public function announceDue(): int
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ use Illuminate\Support\Facades\Storage;
|
|||
use Illuminate\Support\Str;
|
||||
use Illuminate\Validation\Rule;
|
||||
use Illuminate\Validation\Rules\File;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Inertia\Inertia;
|
||||
use Inertia\Response;
|
||||
use Inhaus\Plugins\Stellen\Announcer;
|
||||
|
|
@ -172,6 +173,11 @@ class JobEditorController extends Controller
|
|||
'title' => 'Titel', 'deadline' => 'Bewerbungsfrist', 'apply_url' => 'Link', 'apply_email' => 'E-Mail-Adresse', 'notify_email' => 'E-Mail', 'pdf' => 'PDF',
|
||||
]);
|
||||
|
||||
// Die Ansprechperson sieht alle Bewerbungen – sich selbst eintragen nur mit „Bewerbungen einsehen“
|
||||
if ((int) ($data['contact_id'] ?? 0) === $request->user()->id && ! $request->user()->can('jobs.applications')) {
|
||||
throw ValidationException::withMessages(['contact_id' => 'Sich selbst als Ansprechperson eintragen darf nur, wer Bewerbungen einsehen darf.']);
|
||||
}
|
||||
|
||||
$url = $data['apply_mode'] === 'link' ? Field::safeUrl($data['apply_url'] ?? '') : '';
|
||||
|
||||
return [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue