mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +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
|
@ -95,6 +95,7 @@ const (
|
|||
EventTypeWorkflowPublishRequested EventType = "requested-publication"
|
||||
EventTypeDatabaseBackup EventType = "backedup-database"
|
||||
EventTypeDatabaseRestore EventType = "restored-database"
|
||||
EventTypeAssumedSpaceOwnership EventType = "assumed-space-ownership"
|
||||
|
||||
// EventTypeVersionAdd records addition of version
|
||||
EventTypeVersionAdd EventType = "added-version"
|
||||
|
|
|
@ -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