Refactoring of ConstitutionVoter
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -23,6 +23,7 @@ import fr.dcproject.event.publisher.Publisher
|
||||
import fr.dcproject.messages.Mailer
|
||||
import fr.dcproject.messages.NotificationEmailSender
|
||||
import fr.dcproject.repository.CommentConstitutionRepository
|
||||
import fr.dcproject.security.voter.ConstitutionVoter
|
||||
import fr.postgresjson.connexion.Connection
|
||||
import fr.postgresjson.connexion.Requester
|
||||
import fr.postgresjson.migration.Migrations
|
||||
@@ -123,6 +124,7 @@ val KoinModule = module {
|
||||
single { CitizenVoter() }
|
||||
single { CommentVoter() }
|
||||
single { WorkgroupVoter() }
|
||||
single { ConstitutionVoter() }
|
||||
|
||||
// Elasticsearch Client
|
||||
single<RestClient> {
|
||||
|
||||
Reference in New Issue
Block a user