Skip to content

Commit 2345834

Browse files
committed
fix: remove remaining GRANT/REVOKE WORKFLOW references from docs and HELP
- Remove SHOW ACCESS ON WORKFLOW from HELP output - Update workflows.md See Also to clarify access control approach - Remove dead Workflow section from showSecurityMatrix (AllowedModuleRoles doesn't exist)
1 parent 88eaa78 commit 2345834

File tree

3 files changed

+1
-24
lines changed

3 files changed

+1
-24
lines changed

docs-site/src/language/workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ END WORKFLOW;
4646
- [Workflow Structure](./workflow-structure.md) -- full CREATE WORKFLOW syntax
4747
- [Activity Types](./workflow-activities.md) -- all workflow activity types
4848
- [Workflow vs Microflow](./workflow-vs-microflow.md) -- choosing between the two
49-
- [GRANT / REVOKE](./grant-revoke.md) -- granting execute access on workflows
49+
- [GRANT / REVOKE](./grant-revoke.md) -- workflow access is controlled through triggering microflows and UserTask targeting, not document-level roles

mdl/executor/cmd_misc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ Security - Queries:
222222
SHOW DEMO USERS;
223223
SHOW ACCESS ON MICROFLOW Module.Name;
224224
SHOW ACCESS ON PAGE Module.Name;
225-
SHOW ACCESS ON WORKFLOW Module.Name;
226225
SHOW ACCESS ON Module.Entity;
227226
SHOW SECURITY MATRIX [IN Module];
228227
DESCRIBE MODULE ROLE Module.Role;

mdl/executor/cmd_security.go

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -629,28 +629,6 @@ func (e *Executor) showSecurityMatrixJSON(moduleName string) error {
629629
})
630630
}
631631

632-
// Workflows
633-
wfs, _ := e.reader.ListWorkflows()
634-
for _, wf := range wfs {
635-
if len(wf.AllowedModuleRoles) == 0 {
636-
continue
637-
}
638-
modID := h.FindModuleID(wf.ContainerID)
639-
modName := h.GetModuleName(modID)
640-
if moduleName != "" && modName != moduleName {
641-
continue
642-
}
643-
var roleStrs []string
644-
for _, r := range wf.AllowedModuleRoles {
645-
roleStrs = append(roleStrs, string(r))
646-
}
647-
tr.Rows = append(tr.Rows, []any{
648-
"Workflow",
649-
modName + "." + wf.Name,
650-
strings.Join(roleStrs, ", "),
651-
"X",
652-
})
653-
}
654632

655633
return e.writeResult(tr)
656634
}

0 commit comments

Comments
 (0)