Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 44b9bb2

Browse filesBrowse files
authored
System account bypass RBAC (#10306)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
1 parent 044d4d1 commit 44b9bb2
Copy full SHA for 44b9bb2

File tree

Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-0
lines changed
Open diff view settings
Collapse file

‎foundations/server/packages/middleware/src/spacePermissions.ts‎

Copy file name to clipboardExpand all lines: foundations/server/packages/middleware/src/spacePermissions.ts
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export class SpacePermissionsMiddleware extends BaseMiddleware implements Middle
171171
isSpace: boolean
172172
): boolean {
173173
const account = ctx.contextData.account
174+
if (account.primarySocialId === core.account.System) return true
174175
const permissions = this.permissionsBySpace[space]?.[account.uuid] ?? []
175176
let withoutMatch: Permission | undefined
176177
for (const permission of permissions) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.