You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
saved workflows: derive row actions from effective permissions, not created_by #423
Saved workflow row actions (edit, delete, share) are chosen from workflow.created_by === user.id (site/src/pages/AgentsPage/AgentSettingsPage/ForkSavedWorkflowsPage/ForkSavedWorkflowsPage.tsx), not from the caller's effective permissions. ForkSavedWorkflowMetadata (codersdk/fork_saved_workflows.go) has no permission field. An owner whose access was revoked, or a user with permissions beyond ownership, sees the wrong actions and gets a 403.
Acceptance:
The saved workflow list API returns per-row actions the caller may take, computed server side through dbauthz.
The page shows only those actions.
Tests on both sides that fail without the change. Run make gen for the SDK and API docs.
Activity