mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
link creation: fieldset with checkboxes for objet restriction, TFE checked by default
link creation: fieldset with checkboxes for objet restriction, TFE checked by default; password/expiration in second fieldset 'Accès'
This commit is contained in:
@@ -249,8 +249,8 @@ function renderShareLinkForm(string $slug, array $link): void
|
||||
// Determine allowed objet values for this link
|
||||
$siteSettings = Database::getInstance()->getAllSettings();
|
||||
$objetRestriction = $link['objet_restriction'] ?? null;
|
||||
if ($objetRestriction !== null) {
|
||||
$allowedObjet = [$objetRestriction];
|
||||
if ($objetRestriction !== null && $objetRestriction !== '') {
|
||||
$allowedObjet = explode(',', $objetRestriction);
|
||||
} else {
|
||||
$allowedObjet = ['tfe'];
|
||||
if (($siteSettings['objet_these_enabled'] ?? '1') === '1') $allowedObjet[] = 'thèse';
|
||||
|
||||
Reference in New Issue
Block a user