mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
document approvals and protection
This commit is contained in:
parent
58c88e2127
commit
f4f32bcfcb
20 changed files with 891 additions and 777 deletions
43
model/workflow/workflow.go
Normal file
43
model/workflow/workflow.go
Normal file
|
@ -0,0 +1,43 @@
|
|||
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
|
||||
//
|
||||
// This software (Documize Community Edition) is licensed under
|
||||
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
|
||||
//
|
||||
// You can operate outside the AGPL restrictions by purchasing
|
||||
// Documize Enterprise Edition and obtaining a commercial license
|
||||
// by contacting <sales@documize.com>.
|
||||
//
|
||||
// https://documize.com
|
||||
|
||||
package workflow
|
||||
|
||||
// Protection tell us how to handle data item changes
|
||||
type Protection int
|
||||
|
||||
const (
|
||||
// NoProtection means no protection so data item changes are permitted
|
||||
NoProtection Protection = 0
|
||||
|
||||
// Lock means no data itme changes
|
||||
Lock Protection = 1
|
||||
|
||||
// Review means changes must be reviewed and approved
|
||||
Review Protection = 2
|
||||
)
|
||||
|
||||
// Approval tells us how some data item change is to be approved
|
||||
type Approval int
|
||||
|
||||
const (
|
||||
// NoApproval means no approval necessary
|
||||
NoApproval Approval = 0
|
||||
|
||||
// Anybody can approve data item change
|
||||
Anybody Approval = 1
|
||||
|
||||
// Majority must approve data item change
|
||||
Majority Approval = 2
|
||||
|
||||
// Unanimous approval must be given for data item change
|
||||
Unanimous Approval = 3
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue