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

@@ -83,7 +83,7 @@ object UpsertArticle {
post<UpsertArticleRequest> {
mustBeAuth()
val article = call.convertRequestToEntity()
ac.assert { canUpsert(article, citizenOrNull) }
ac.canUpsert(article, citizenOrNull).assert()
repo.upsert(article)?.let { a ->
call.respond(
object {