Ajustement des permissions pour utiliser l'inventaire.

This commit is contained in:
FyloZ 2021-03-19 22:38:42 -04:00
parent 6ea65f6519
commit 3afd5f16f9
1 changed files with 10 additions and 0 deletions

View File

@ -309,6 +309,16 @@ private enum class ControllerAuthorizations(
val antMatcher: String,
val permissions: Map<HttpMethod, EmployeePermission>
) {
INVENTORY_ADD(
"/api/material/inventory/add", mapOf(
HttpMethod.PUT to EmployeePermission.EDIT_MATERIAL
)
),
INVENTORY_DEDUCT(
"/api/material/inventory/deduct", mapOf(
HttpMethod.PUT to EmployeePermission.VIEW_MATERIAL
)
),
MATERIALS(
"/api/material/**", mapOf(
HttpMethod.GET to EmployeePermission.VIEW_MATERIAL,