Skip to content
Snippets Groups Projects
Commit 599e6e99 authored by Stefan Hugtenburg's avatar Stefan Hugtenburg
Browse files

Merge branch 'development' into 'master'

Accidentally made it impossible to view puzzles

See merge request !4
parents 80aa0f36 4933bca8
Branches
Tags
1 merge request!4Accidentally made it impossible to view puzzles
Pipeline #946488 passed with warnings
......@@ -121,7 +121,7 @@ public class AuthorisationService {
if (puzzle.getCreator().getId().equals(getAuthPerson().getId())) {
return true;
}
return puzzle.getDayUsed() != null && LocalDate.now().isBefore(puzzle.getDayUsed());
return puzzle.getDayUsed() != null && !LocalDate.now().isBefore(puzzle.getDayUsed());
}
public boolean canCreatePuzzle() {
......
......@@ -43,6 +43,7 @@
<h2 class="font-400">
Created by:
<a
class="link"
th:href="@{/profile/{id}(id=${puzzle.getCreator().getId()})}"
th:text="${puzzleCreator}"></a>
</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment