Refactoring of ConstitutionVoter

This commit is contained in:
2021-01-17 23:06:18 +01:00
parent 1b6549eae3
commit 308a284280
4 changed files with 33 additions and 66 deletions

View File

@@ -96,7 +96,6 @@ fun Application.module(env: Env = PROD) {
install(AuthorizationVoter) {
voters = listOf(
ConstitutionVoter(),
VoteVoter(),
FollowVoter(),
OpinionVoter(),
@@ -208,7 +207,7 @@ fun Application.module(env: Env = PROD) {
deleteMemberOfWorkgroup(get(), get())
updateMemberOfWorkgroup(get(), get())
/* TODO */
constitution(get())
constitution(get(), get())
followArticle(get())
followConstitution(get())
commentConstitution(get(), get())