Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
feat(travaux): rend les travaux visibles que par les administrations (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaubert authored Feb 4, 2022
1 parent f8afbc7 commit f6be1eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/_format/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ const userFormat = (utilisateur: IUtilisateur | null) => {
])

user.sections = {
travaux: permissionCheck(user?.permissionId, [
'admin',
'editeur',
'lecteur',
'super'
]),
activites: hasPermissions,
administrations: permissionCheck(user?.permissionId, [
'super',
Expand Down
1 change: 1 addition & 0 deletions src/api/graphql/schemas/utilisateurs.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type Sections {
utilisateurs: Boolean
metas: Boolean
journaux: Boolean
travaux: Boolean
}

input InputUtilisateurModification {
Expand Down

0 comments on commit f6be1eb

Please sign in to comment.