Commit graph

2 commits

Author SHA1 Message Date
smavros
5d3bb4c632 Improves actions mechanism in common package
- Typedefs the name of a model (ModelName) and the CRUD operations
    (CRUD).
    - Defines constants for models's names and the 4 CRUD operations
    - Changes the corresponding functions that need to validate the role
2019-06-04 20:22:09 +02:00
smavros
fc358d06c6 Adds actions.go in package common
Creates exported global variable common.Roles that can be used to
    validate the permitted operations of a certain role for a certain
    model. Need to be filled in properly for every role-model-crud op.
2019-05-31 14:35:33 +02:00