mirror of
https://github.com/documize/community.git
synced 2025-07-24 23:59:47 +02:00
Improve Space permissions
Closes out loopholes that allowed managers to kick owners.
This commit is contained in:
parent
09635b67ab
commit
5d632712e0
30 changed files with 1015 additions and 877 deletions
|
@ -11,7 +11,9 @@
|
|||
|
||||
package org
|
||||
|
||||
import "github.com/documize/community/model"
|
||||
import (
|
||||
"github.com/documize/community/model"
|
||||
)
|
||||
|
||||
// Organization defines a tenant that uses this app.
|
||||
type Organization struct {
|
||||
|
@ -28,5 +30,10 @@ type Organization struct {
|
|||
MaxTags int `json:"maxTags"`
|
||||
Serial string `json:"serial"`
|
||||
Active bool `json:"active"`
|
||||
Subscription string
|
||||
Subscription string `json:"subscription"`
|
||||
}
|
||||
|
||||
// StripSecrets removes sensitive information.
|
||||
func (o *Organization) StripSecrets() {
|
||||
o.Subscription = ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue