File tree Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Expand file tree Collapse file tree 4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @hcengineering/middleware" ,
33 "entries" : [
4+ {
5+ "version" : " 0.7.19" ,
6+ "tag" : " @hcengineering/middleware_v0.7.19" ,
7+ "date" : " Fri, 07 Nov 2025 16:12:16 GMT" ,
8+ "comments" : {
9+ "patch" : [
10+ {
11+ "comment" : " Fix permission middleware"
12+ }
13+ ]
14+ }
15+ },
416 {
517 "version" : " 0.7.18" ,
618 "tag" : " @hcengineering/middleware_v0.7.18" ,
Original file line number Diff line number Diff line change 11# Change Log - @hcengineering/middleware
22
3- This log was last generated on Thu, 06 Nov 2025 10:21:28 GMT and should not be manually modified.
3+ This log was last generated on Fri, 07 Nov 2025 16:12:16 GMT and should not be manually modified.
4+
5+ ## 0.7.19
6+ Fri, 07 Nov 2025 16:12:16 GMT
7+
8+ ### Patches
9+
10+ - Fix permission middleware
411
512## 0.7.18
613Thu, 06 Nov 2025 10:21:28 GMT
Original file line number Diff line number Diff line change 11{
22 "name" : " @hcengineering/middleware" ,
3- "version" : " 0.7.18 " ,
3+ "version" : " 0.7.19 " ,
44 "main" : " lib/index.js" ,
55 "svelte" : " src/index.ts" ,
66 "types" : " types/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ export class SpacePermissionsMiddleware extends BaseMiddleware implements Middle
163163 let withoutMatch : Permission | undefined = 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 ( permission . objectClass !== undefined && ! this . context . hierarchy . isDerived ( tx . objectClass , permission . objectClass ) ) continue
167167 if ( permission . txMatch === undefined ) {
168168 withoutMatch = permission
169169 continue
You can’t perform that action at this time.
0 commit comments