Skip to content

[comp] Production Deploy#3171

Merged
tofikwest merged 3 commits into
releasefrom
main
Jun 17, 2026
Merged

[comp] Production Deploy#3171
tofikwest merged 3 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Grant the built-in admin role portal: ['read','update'] so admins can submit evidence forms and access the employee portal without adding the Employee role (CS-550). Updated RBAC tests; auditor remains denied.

Written for commit 0997932. Summary will update on new commits.

Review in cubic

github-actions Bot and others added 3 commits June 16, 2026 21:39
Admin-role users got "Access Denied" submitting evidence forms (e.g.
/documents/risk-committee-meeting/new) while Owners could. The evidence-form
submit/upload/my-submissions endpoints are gated on `portal:update`
(evidence-forms.controller.ts) — chosen so employees can self-submit from the
portal — but the built-in `admin` role had no `portal` statement at all. Owner
and employee/contractor had `portal:['read','update']`; admin and auditor did
not, so admins were denied. The CS workaround was granting the Employee role.

Fix: add `portal:['read','update']` to the admin role so admins can submit
evidence forms directly, mirroring owner. Auditor is intentionally left
unchanged (read-only). Updated the two guarding specs that encoded the old
"admins get portal only via the employee role" policy.

Side effect (intended): a pure-admin user can now log into the employee portal,
same as owner already could. Invite-email behavior is unchanged (it keys off the
compliance obligation, which admin still lacks).

Verified against the built @trycompai/auth dist running real better-auth:
admin.authorize({portal:['update']}).success === true, auditor === false,
owner/employee unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…mission

fix(auth): grant admin role portal permission to submit evidence forms (CS-550)
@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app (staging) Ready Ready Preview, Comment Jun 17, 2026 2:41pm
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 17, 2026 2:41pm
portal (staging) Ready Ready Preview, Comment Jun 17, 2026 2:41pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@tofikwest tofikwest merged commit 548e118 into release Jun 17, 2026
14 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.83.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants