Commit graph

7 commits

Author SHA1 Message Date
smavros
4cc98867ca Merge branch 'authentication' of git.rwth-aachen.de:acs/public/villas/villasweb-backend-go into authentication 2019-06-05 10:03:49 +02:00
smavros
1b39f2fd83 Adds global constant strings for Context custom variables 2019-06-05 10:03:12 +02:00
Sonja Happ
d3cdf0008b - rename Modes to Permissions
- rename actions.go to roles.go
- put all role related functions in file roles.go
2019-06-05 09:38:17 +02:00
smavros
e4c8fb9825 Renames IsActionAllowed() to ValidateRole() 2019-06-04 20:33:27 +02:00
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
1a1a3c1876 Adds IsActionAllowed() in common utilities
- Is used only in deleteUser handler function for now
2019-06-04 18:03:47 +02:00
Sonja Happ
144c97ce49 Refactoring code base to new structure, removing circular dependencies, creating response types 2019-05-23 16:50:05 +02:00