Skip to content

Commit a8cd575

Browse files
festival: Show some commands to non-logged-in users too
1 parent 776e37e commit a8cd575

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

system/datatypes/festival.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,17 @@ public static function getDatatypeName() {
164164
public function process(HyphaRequest $request) {
165165
$this->html->writeToElement('pagename', showPagename($this->pagename) . ' ' . asterisk($this->privateFlag));
166166

167+
$commands = $this->html->find('#pageCommands');
168+
$commands->append($this->makeActionButton(__('about'), self::PATH_ABOUT));
169+
$commands->append($this->makeActionButton(__('festival-signup'), self::PATH_SIGNUP));
170+
$commands->append($this->makeActionButton(__('festival-lineup'), self::PATH_LINEUP));
171+
$commands->append($this->makeActionButton(__('festival-timetable'), self::PATH_TIMETABLE));
172+
167173
if (isUser() && !in_array($request->getView(), [self::PATH_SETTINGS])) {
168-
$commands = $this->html->find('#pageCommands');
169-
$commands->append($this->makeActionButton(__('about'), self::PATH_ABOUT));
170174
$commands->append($this->makeActionButton(__('settings'), self::PATH_SETTINGS));
171-
$commands->append($this->makeActionButton(__('festival-signup'), self::PATH_SIGNUP));
172175
$commands->append($this->makeActionButton(__('festival-contribute'), self::PATH_CONTRIBUTE));
173176
$commands->append($this->makeActionButton(__('festival-participants'), self::PATH_PARTICIPANTS));
174177
$commands->append($this->makeActionButton(__('festival-contributions'), self::PATH_CONTRIBUTIONS));
175-
$commands->append($this->makeActionButton(__('festival-lineup'), self::PATH_LINEUP));
176-
$commands->append($this->makeActionButton(__('festival-timetable'), self::PATH_TIMETABLE));
177178

178179
if (isAdmin()) {
179180
$action = 'if(confirm(\'' . __('sure-to-delete') . '\'))' . makeAction($this->language . '/' . $this->pagename, 'delete', '');

0 commit comments

Comments
 (0)