1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 23:59:47 +02:00

New schema for permissions and roles management

This commit is contained in:
Harvey Kandola 2017-09-12 09:59:43 +01:00
parent fbf2222eda
commit c51ba65b1d
17 changed files with 810 additions and 665 deletions

View file

@ -18,6 +18,7 @@ type Account struct {
model.BaseEntity
Admin bool `json:"admin"`
Editor bool `json:"editor"`
Users bool `json:"viewUsers"`
UserID string `json:"userId"`
OrgID string `json:"orgId"`
Company string `json:"company"`

View file

@ -28,6 +28,7 @@ type User struct {
Active bool `json:"active"`
Editor bool `json:"editor"`
Admin bool `json:"admin"`
ViewUsers bool `json:"viewUsers"`
Global bool `json:"global"`
Password string `json:"-"`
Salt string `json:"-"`