mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
New user role: view analytics
This commit is contained in:
parent
b65a00dd1c
commit
19a916a4b4
13 changed files with 68 additions and 29 deletions
|
@ -16,14 +16,15 @@ import "github.com/documize/community/model"
|
|||
// Account links a User to an Organization.
|
||||
type Account struct {
|
||||
model.BaseEntity
|
||||
Admin bool `json:"admin"`
|
||||
Editor bool `json:"editor"`
|
||||
Users bool `json:"viewUsers"` // either view all users or just users in your space
|
||||
UserID string `json:"userId"`
|
||||
OrgID string `json:"orgId"`
|
||||
Company string `json:"company"`
|
||||
Title string `json:"title"`
|
||||
Message string `json:"message"`
|
||||
Domain string `json:"domain"`
|
||||
Active bool `json:"active"`
|
||||
Admin bool `json:"admin"`
|
||||
Editor bool `json:"editor"`
|
||||
Users bool `json:"viewUsers"` // either view all users or just users in your space
|
||||
Analytics bool `json:"analytics"` // view content analytics
|
||||
UserID string `json:"userId"`
|
||||
OrgID string `json:"orgId"`
|
||||
Company string `json:"company"`
|
||||
Title string `json:"title"`
|
||||
Message string `json:"message"`
|
||||
Domain string `json:"domain"`
|
||||
Active bool `json:"active"`
|
||||
}
|
||||
|
|
|
@ -30,6 +30,7 @@ type User struct {
|
|||
Editor bool `json:"editor"`
|
||||
Admin bool `json:"admin"`
|
||||
ViewUsers bool `json:"viewUsers"`
|
||||
Analytics bool `json:"analytics"`
|
||||
Global bool `json:"global"`
|
||||
Password string `json:"-"`
|
||||
Salt string `json:"-"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue