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
|
|
@ -239,6 +239,19 @@ class PagesTest extends TestCase
|
|||
$this->get($file['url'])->assertOk()->assertDownload('Urlaubsantrag 2027.pdf');
|
||||
|
||||
$this->actingAs(User::factory()->create(['department' => 'Küche']))->get($file['url'])->assertNotFound();
|
||||
|
||||
// Nicht eingebundene Datei (z. B. nur im Entwurf) und Datei in einem Block für andere: nicht abrufbar
|
||||
$this->actingAs($this->admin);
|
||||
$draftFile = $this->postJson('/redaktion/seiten/'.$page->id.'/dateien', ['file' => UploadedFile::fake()->create('Gehaltsliste.pdf', 10, 'application/pdf')])->json('file');
|
||||
$this->actingAs($nurse)->get($draftFile['url'])->assertNotFound();
|
||||
|
||||
$hr = Role::query()->create(['name' => 'Personalabteilung']);
|
||||
$this->actingAs($this->admin)->postJson('/redaktion/seiten/'.$page->id.'/veroeffentlichen', ['title' => 'Formulare', 'content' => ['blocks' => [
|
||||
['type' => 'downloads', 'data' => ['files' => [$stored->id]]],
|
||||
['type' => 'downloads', 'data' => ['files' => [PageFile::query()->where('name', 'Gehaltsliste.pdf')->value('id')]], 'visibility' => ['role' => [(string) $hr->id]]],
|
||||
]]]);
|
||||
$this->actingAs($nurse)->get($draftFile['url'])->assertNotFound();
|
||||
$this->actingAs($nurse)->get($file['url'])->assertOk();
|
||||
}
|
||||
|
||||
public function test_images_are_stored_as_webp(): void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue