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

@@ -52,7 +52,7 @@ object PutVoteOnComment {
note = input.note,
createdBy = this.citizen
)
ac.assert { canCreate(vote, citizenOrNull) }
ac.canCreate(vote, citizenOrNull).assert()
val votes = voteCommentRepo.vote(vote)
call.respond(
HttpStatusCode.Created,