Zeige Medienfassungen in der Verwaltung und halte Beschreibungen davon getrennt.
Deploy Test / test (push) Successful in 15s
Deploy Test / deploy (push) Successful in 22s

Eine Fassung bleibt nummeriert und kann deaktiviert werden. Beschreibung und fachliche Säulen gehören zum Medium und legen keine neue Fassung an.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-11-15 11:25:08 +01:00
1 parent 12f12117dd
commit af85a94cd5
28 files changed
+1002 -168

No files matched your search

@@ -44,7 +44,7 @@ public function grants(Request $request): View
public function show(Request $request, LicenseArticle $article): View
{
$release = $article->currentRelease()->with('contents.elementVersion.element')->first();
$release = $article->currentRelease()->with('contents.elementVersion.element.pillars')->first();
$entries = [];
if ($release !== null) {
@@ -66,6 +66,7 @@ public function show(Request $request, LicenseArticle $article): View
? (int) $metadata['decision_seconds']
: null,
'playable' => $decision->allowed && is_string($file) && $file !== '' && ($class === 'film' || $class === 'audio'),
'pillars' => $version->element->pillars->pluck('name')->all(),
'url' => $decision->allowed
? SignedLink::temporary('member.media', now()->addMinutes(10), [
'article' => $article->id,