Ajustement des permissions pour utiliser l'inventaire.
This commit is contained in:
parent
6ea65f6519
commit
3afd5f16f9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue