diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2025-01-22 19:02:50 +0000 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2025-01-22 19:02:50 +0000 |
| commit | 056f558ca97e955bc8739e30c97ea30b01e60348 (patch) | |
| tree | 40bf810f452a6962c79677cf5d93a1a540db5117 | |
| parent | 35f1a2cea1ca2c7e75387fc95fe59b83685bd2d2 (diff) | |
PolishingTIC: Sichtbarkeit des Erstellen von Ankündigungen auf der Loginseite
Closes #4956
Merge request studip/studip!3854
| -rw-r--r-- | lib/classes/forms/NewsRangesInput.php | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/classes/forms/NewsRangesInput.php b/lib/classes/forms/NewsRangesInput.php index abf95c7..fc1a115 100644 --- a/lib/classes/forms/NewsRangesInput.php +++ b/lib/classes/forms/NewsRangesInput.php @@ -28,15 +28,24 @@ class NewsRangesInput extends Input $selectable = []; - // Stud.IP + // System $studip_options = $this->getStudipOptions(); if (count($studip_options) > 0) { $selectable[] = [ - 'label' => _('Stud.IP'), + 'label' => _('System'), 'options' => $studip_options ]; } + // User + $user_options = $this->getUserOptions(); + if (count($user_options) > 0) { + $selectable[] = [ + 'label' => _('Personen'), + 'options' => $user_options + ]; + } + // Institutes $inst_options = $this->getInstituteOptions(); if (count($inst_options) > 0) { @@ -122,6 +131,14 @@ class NewsRangesInput extends Input ]; } + + return $options; + } + + public function getUserOptions(): array + { + $options = []; + $options[] = [ 'value' => \User::findCurrent()->id . '__person', 'name' => _('Meine Profilseite') |
