change ac.assert { can*() } to as.can*().assert()
This commit is contained in:
@@ -30,7 +30,7 @@ object GetCitizenVotes {
|
||||
mustBeAuth()
|
||||
val votes = repo.findCitizenVotesByTargets(it.citizen, it.id)
|
||||
if (votes.isNotEmpty()) {
|
||||
ac.assert { canView(votes, citizenOrNull) }
|
||||
ac.canView(votes, citizenOrNull).assert()
|
||||
}
|
||||
call.respond(
|
||||
HttpStatusCode.OK,
|
||||
|
||||
Reference in New Issue
Block a user