Skip to content

Auto STR permissions

Permissions live under module auto_str. Tenant Owner and platform Admin bypass all checks.

Permission keys

PermissionUI capability
auto_str.plan.generateGenerate Plan for Review
auto_str.plan.reviewEdit lines, quick-approve, reject
auto_str.plan.submitSubmit for validation
auto_str.plan.finalizeFinalize → create STRs
auto_str.plan.reopenRe-open review
auto_str.plan.cancelCancel plan
auto_str.createCreate All STRs (legacy) — bypasses review
auto_str.delete_previewRemove STRs/SKUs from run preview

Typical role assignment

RoleTypical grants
Head PharmacistAll auto_str.plan.* keys
Warehouse Managerplan.generate, plan.review, plan.submit
Tenant OwnerAll (automatic)

Route access

RoutePermission gate
/wms/auto-strWMS module access + any auto_str permission for plan actions
/wms/auto-str/plans/:planIdSame; review actions need plan.review