File tree Expand file tree Collapse file tree
internal-packages/rbac/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,11 +201,11 @@ class RoleBaseAccessFallbackController implements RoleBaseAccessController {
201201 }
202202
203203 if ( env . type === "PREVIEW" || env . type === "DEVELOPMENT" ) {
204- // The "default" sentinel is DEVELOPMENT-only: it maps to the dev root env
204+ // The "default" root branch is DEVELOPMENT-only: it maps to the dev root env
205205 // (which carries no branch), so we skip the pivot there. For PREVIEW,
206206 // "default" is an ordinary branch name and must still pivot to its child.
207- const isDevRootSentinel = env . type === "DEVELOPMENT" && isDefaultDevBranch ( branchName ) ;
208- if ( branchName !== null && ! isDevRootSentinel ) {
207+ const isDevAndDefault = env . type === "DEVELOPMENT" && isDefaultDevBranch ( branchName ) ;
208+ if ( branchName !== null && ! isDevAndDefault ) {
209209 const child = env . childEnvironments ?. [ 0 ] ;
210210 if ( ! child ) {
211211 return { ok : false , status : 401 , error : "No matching branch env" } ;
You can’t perform that action at this time.
0 commit comments