manually unset the verified state on drysubmit
This commit is contained in:
parent
5b58a78e64
commit
3a80d44dda
|
@ -185,6 +185,11 @@ func (api *recordApi) create(c echo.Context) error {
|
||||||
return NewBadRequestError("Failed to load the submitted data due to invalid formatting.", err)
|
return NewBadRequestError("Failed to load the submitted data due to invalid formatting.", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// force unset the verified state to prevent ManageRule misuse
|
||||||
|
if !hasFullManageAccess {
|
||||||
|
testForm.Verified = false
|
||||||
|
}
|
||||||
|
|
||||||
createRuleFunc := func(q *dbx.SelectQuery) error {
|
createRuleFunc := func(q *dbx.SelectQuery) error {
|
||||||
if *collection.CreateRule == "" {
|
if *collection.CreateRule == "" {
|
||||||
return nil // no create rule to resolve
|
return nil // no create rule to resolve
|
||||||
|
|
Loading…
Reference in New Issue