fix citizen voter

This commit is contained in:
2019-09-05 11:21:30 +02:00
parent 3a4a90abfe
commit 9cf05865a0

View File

@@ -25,6 +25,7 @@ class CitizenVoter: Voter {
} }
if (action == Action.VIEW) { if (action == Action.VIEW) {
if (user == null) return Vote.DENIED
if (subject is Citizen) { if (subject is Citizen) {
return if (subject.isDeleted()) Vote.DENIED return if (subject.isDeleted()) Vote.DENIED
else Vote.GRANTED else Vote.GRANTED