fix citizen voter
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user