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
Copy file name to clipboardExpand all lines: apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches/route.tsx
// The orgFilter approach is not ideal but we need to keep it this way for now because of how the service is used in routes and api endpoints.
15
+
// Currently authorization checks are spread across the controller/route layer and the service layer. Often we check in multiple places for org/project membership.
16
+
// Ideally we would take care of both the authentication and authorization checks in the controllers and routes.
17
+
// That would unify how we handle authorization and org/project membership checks. Also it would make the service layer queries simpler.
// The orgFilter approach is not ideal but we need to keep it this way for now because of how the service is used in routes and api endpoints.
19
+
// Currently authorization checks are spread across the controller/route layer and the service layer. Often we check in multiple places for org/project membership.
20
+
// Ideally we would take care of both the authentication and authorization checks in the controllers and routes.
21
+
// That would unify how we handle authorization and org/project membership checks. Also it would make the service layer queries simpler.
0 commit comments