Skip to content

Commit

Permalink
feat(infra): ajout des permissions pour les roles publics (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
Floby authored Oct 12, 2022
1 parent aeee5e3 commit 0d92c5c
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
22 changes: 22 additions & 0 deletions config/sync/user-role.authenticated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Authenticated",
"description": "Default role given to authenticated user.",
"type": "authenticated",
"permissions": [
{
"action": "api::contact-cej.contact-cej.create"
},
{
"action": "api::contact-entreprise.contact-entreprise.create"
},
{
"action": "api::entreprise.entreprise.create"
},
{
"action": "plugin::users-permissions.auth.connect"
},
{
"action": "plugin::users-permissions.user.me"
}
]
}
43 changes: 43 additions & 0 deletions config/sync/user-role.public.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "Public",
"description": "Default role given to unauthenticated user.",
"type": "public",
"permissions": [
{
"action": "api::accessibilite.accessibilite.find"
},
{
"action": "api::article.article.find"
},
{
"action": "api::conditions-generales-d-utilisation.conditions-generales-d-utilisation.find"
},
{
"action": "api::fiche-metier.fiche-metier.find"
},
{
"action": "api::les-mesures-employeurs.les-mesures-employeurs.find"
},
{
"action": "api::mention-legale.mention-legale.find"
},
{
"action": "api::mesure-jeune.mesure-jeune.find"
},
{
"action": "api::politique-de-confidentialite.politique-de-confidentialite.find"
},
{
"action": "plugin::users-permissions.auth.callback"
},
{
"action": "plugin::users-permissions.auth.connect"
},
{
"action": "plugin::users-permissions.auth.register"
},
{
"action": "plugin::users-permissions.user.me"
}
]
}

0 comments on commit 0d92c5c

Please sign in to comment.