Skip to content

Commit a1c681f

Browse files
committed
start navigation here for visitors
1 parent 4d5b458 commit a1c681f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

adm_program/modules/messages/messages_write.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,12 @@
203203
}
204204
}
205205

206-
// add current url to navigation stack
207-
$gNavigation->addUrl(CURRENT_URL, $headline);
206+
if(!$gValidLogin && $getUserUuid === '' && $getRoleUuid === '') {
207+
// visitors have no message modul and start the navigation here
208+
$gNavigation->addStartUrl(CURRENT_URL, $headline);
209+
} else {
210+
$gNavigation->addUrl(CURRENT_URL, $headline);
211+
}
208212

209213
// create html page object
210214
$page = new HtmlPage('admidio-messages-write', $headline);

0 commit comments

Comments
 (0)