File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2525 run : node common/scripts/install-run-rush.js install
2626 - name : Rush validate
2727 run : node common/scripts/install-run-rush.js validate --verbose
28+ - name : Formatting...
29+ run : node common/scripts/install-run-rush.js format --force
30+ - name : Check files formatting
31+ run : |
32+ echo '================================================================'
33+ echo 'Checking for diff files'
34+ echo '================================================================'
35+ git diff '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat
36+ [ -z "$(git diff --name-only '*.js' '*.ts' '*.svelte' '*.json' '*.yaml' | cat)" ]
37+ echo '================================================================'
2838 - name : Prepare server
2939 run : |
3040 cd ./tests
Original file line number Diff line number Diff line change @@ -160,10 +160,15 @@ export class SpacePermissionsMiddleware extends BaseMiddleware implements Middle
160160 private checkPermission ( ctx : MeasureContext < SessionData > , space : Ref < TypedSpace > , tx : TxCUD < Doc > ) : boolean {
161161 const account = ctx . contextData . account
162162 const permissions = this . permissionsBySpace [ space ] ?. [ account . uuid ] ?? [ ]
163- let withoutMatch : Permission | undefined = undefined
163+ let withoutMatch : Permission | undefined
164164 for ( const permission of permissions ) {
165165 if ( permission . txClass === undefined || permission . txClass !== tx . _class ) continue
166- if ( permission . objectClass !== undefined && ! this . context . hierarchy . isDerived ( tx . objectClass , permission . objectClass ) ) continue
166+ if (
167+ permission . objectClass !== undefined &&
168+ ! this . context . hierarchy . isDerived ( tx . objectClass , permission . objectClass )
169+ ) {
170+ continue
171+ }
167172 if ( permission . txMatch === undefined ) {
168173 withoutMatch = permission
169174 continue
You can’t perform that action at this time.
0 commit comments