Skip to content

Commit

Permalink
Removed permission check from the old extension call and added it to …
Browse files Browse the repository at this point in the history
…the new subscription
  • Loading branch information
cohansen committed Jan 7, 2025
1 parent 99f2cf3 commit 7967693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ const queryPermissions: Record<GQLKeys, (user: User | null, ...args: any[]) => b
return isUserAdmin(user) || getPermission([Queries.SEQUENCE_TO_SIMULATED_ACTIVITY], user);
},
GET_EXPANSION_SEQUENCE_SEQ_JSON: () => true,
GET_EXTENSIONS: () => true,
GET_EXTERNAL_EVENTS: () => true,
GET_EXTERNAL_EVENT_TYPE_BY_SOURCE: () => true,
GET_MODELS: () => true,
Expand Down Expand Up @@ -858,6 +857,7 @@ const queryPermissions: Record<GQLKeys, (user: User | null, ...args: any[]) => b
SUB_EXPANSION_SETS: (user: User | null): boolean => {
return isUserAdmin(user) || getPermission([Queries.EXPANSION_SETS], user);
},
SUB_EXTENSIONS: () => true,
SUB_EXTERNAL_EVENT_TYPES: () => true,
SUB_EXTERNAL_SOURCE: () => true,
SUB_EXTERNAL_SOURCES: () => true,
Expand Down

0 comments on commit 7967693

Please sign in to comment.