change ac.assert { can*() } to as.can*().assert()

This commit is contained in:
2022-03-03 19:46:49 +01:00
parent f380231e1e
commit 03350db56f
51 changed files with 51 additions and 51 deletions

View File

@@ -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,