Auth require for view citizens

This commit is contained in:
2019-08-29 13:44:46 +02:00
parent 9fb6440736
commit 679dd2e4c5

View File

@@ -22,7 +22,7 @@ class CitizenVoter: Voter {
return Vote.GRANTED return Vote.GRANTED
} }
if (action == Action.VIEW) { if (action == Action.VIEW && user != null) {
return Vote.GRANTED return Vote.GRANTED
} }