Unverified Commit 090d3970 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

guard 'copy checkin' behind auth and 'not checked in' check

Unauthenticated users have no way of performing a checkin.
If a user is already checked in, they have to check out first.

For the latter case, it might be a good idea to still allow a new checkin if
the current checkin has already arrived at its destination (and perform an
automatic checkout in that case). But that's a different issue that can be
addressed later.
parent ac48c17c
Loading
Loading
Loading
Loading
+25 −23
Original line number Diff line number Diff line
@@ -294,6 +294,7 @@
				</div>
			% }
		</div>
		% if (is_user_authenticated() and not get_user_status()->{checked_in}) {
			<div class="card-action" style="display: flex; justify-content: end">
				<a class="blue-text action-checkin" style="margin-right: 0;"
					% if ( $journey->{is_dbris} ) {
@@ -317,6 +318,7 @@
					%= L('status.copy-checkin')
				</a>
			</div>
		% }
	</div>
% }
% else {