Repository navigation
studio: allow full access for the installation owner - #12604
Conversation
|
Review record for #12604, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#344. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
Co-authored-by: mahiatlinux <[email protected]> Co-authored-by: Daniel Han <[email protected]>
Creating a subaccount currently removes Full access from the main account. Make
auth.policy.full_access_permitted()and the frontenduseFullAccessAllowed()check account ownership so the owner can disable the sandbox with active or deactivated subaccounts.Keep subaccounts blocked for
permission_mode=full,bypass_permissions, anddisable_sandbox, including direct tool execution. Preserve the public/api/auth/statuspre-login hint for older clients.Checks
Screenshots
Owner account with a second account present, using separate builds at the base and fix:
Subaccount remains restricted.
Before/after on separate builds (merge base c2fe72a vs 3cc2d41)
The owner is signed in and one managed account exists, so both builds report
login_mode: multi. The composer permission menu read from the DOM has 3 rows before (Ask for approval,Approve for me,Run automatically) and 4 rows after, withFull accessadded for the owner.Full viewport: