File tree Expand file tree Collapse file tree 4 files changed +33
-12
lines changed
src/core/bufservices/subgraph Expand file tree Collapse file tree 4 files changed +33
-12
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 11{
2- "id" : " 1bb12880-ed57-4cad-b9aa-dcd0a3d08f67 " ,
3- "prevId" : " e8d72d6a-3744-48e9-88a2-d8617e9a867c " ,
2+ "id" : " aa949867-16a4-42b3-abac-089abf6a6e4d " ,
3+ "prevId" : " d090b695-c13a-4b3d-ad8f-0516d5689336 " ,
44 "version" : " 7" ,
55 "dialect" : " postgresql" ,
66 "tables" : {
27982798 }
27992799 },
28002800 "indexes" : {
2801+ "lsc_schema_check_id_linked_schema_check_id_unique" : {
2802+ "name" : " lsc_schema_check_id_linked_schema_check_id_unique" ,
2803+ "columns" : [
2804+ {
2805+ "expression" : " schema_check_id" ,
2806+ "isExpression" : false ,
2807+ "asc" : true ,
2808+ "nulls" : " last"
2809+ },
2810+ {
2811+ "expression" : " linked_schema_check_id" ,
2812+ "isExpression" : false ,
2813+ "asc" : true ,
2814+ "nulls" : " last"
2815+ }
2816+ ],
2817+ "isUnique" : true ,
2818+ "concurrently" : false ,
2819+ "method" : " btree" ,
2820+ "with" : {}
2821+ },
28012822 "lsc_schema_check_id_idx" : {
28022823 "name" : " lsc_schema_check_id_idx" ,
28032824 "columns" : [
28582879 }
28592880 },
28602881 "compositePrimaryKeys" : {},
2861- "uniqueConstraints" : {
2862- "linked_schema_checks_schema_check_id_unique" : {
2863- "name" : " linked_schema_checks_schema_check_id_unique" ,
2864- "nullsNotDistinct" : false ,
2865- "columns" : [
2866- " schema_check_id"
2867- ]
2868- }
2869- },
2882+ "uniqueConstraints" : {},
28702883 "checkConstraints" : {}
28712884 },
28722885 "public.linked_subgraphs" : {
84258438 " graph-viewer" ,
84268439 " subgraph-admin" ,
84278440 " subgraph-publisher" ,
8441+ " subgraph-checker" ,
84288442 " subgraph-viewer"
84298443 ]
84308444 },
Original file line number Diff line number Diff line change 918918 "when" : 1756988174576 ,
919919 "tag" : " 0130_skinny_solo" ,
920920 "breakpoints" : true
921+ },
922+ {
923+ "idx" : 131 ,
924+ "version" : " 7" ,
925+ "when" : 1757542818295 ,
926+ "tag" : " 0131_known_stepford_cuckoos" ,
927+ "breakpoints" : true
921928 }
922929 ]
923930}
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export function checkSubgraphSchema(
129129 }
130130 }
131131
132- if ( subgraph && ! authContext . rbac . hasSubGraphWriteAccess ( subgraph ) ) {
132+ if ( subgraph && ! authContext . rbac . hasSubGraphCheckAccess ( subgraph ) ) {
133133 throw new UnauthorizedError ( ) ;
134134 } else if ( ! subgraph ) {
135135 if ( ! authContext . rbac . canCreateSubGraph ( namespace ) ) {
You can’t perform that action at this time.
0 commit comments