File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ export const initPage = async ({
59
59
{
60
60
fallbackLocale : null ,
61
61
req : {
62
+ headers,
62
63
host : headers . get ( 'host' ) ,
63
64
i18n,
64
65
query : qs . parse ( queryString , {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export const ListView: React.FC<AdminViewProps> = async ({
27
27
collectionConfig,
28
28
locale : fullLocale ,
29
29
permissions,
30
+ req,
30
31
req : {
31
32
i18n,
32
33
locale,
@@ -53,6 +54,7 @@ export const ListView: React.FC<AdminViewProps> = async ({
53
54
collection : 'payload-preferences' ,
54
55
depth : 0 ,
55
56
limit : 1 ,
57
+ req,
56
58
user,
57
59
where : {
58
60
key : {
@@ -109,6 +111,7 @@ export const ListView: React.FC<AdminViewProps> = async ({
109
111
locale,
110
112
overrideAccess : false ,
111
113
page,
114
+ req,
112
115
sort,
113
116
user,
114
117
where : whereQuery || { } ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export const VersionView: EditViewComponent = async (props) => {
19
19
docID : id ,
20
20
globalConfig,
21
21
permissions,
22
+ req,
22
23
req : { payload, payload : { config } = { } , user } = { } ,
23
24
} = initPageResult
24
25
@@ -48,6 +49,7 @@ export const VersionView: EditViewComponent = async (props) => {
48
49
depth : 1 ,
49
50
locale : '*' ,
50
51
overrideAccess : false ,
52
+ req,
51
53
user,
52
54
} )
53
55
@@ -58,6 +60,7 @@ export const VersionView: EditViewComponent = async (props) => {
58
60
draft : false ,
59
61
locale : '*' ,
60
62
overrideAccess : false ,
63
+ req,
61
64
user,
62
65
} )
63
66
@@ -68,6 +71,7 @@ export const VersionView: EditViewComponent = async (props) => {
68
71
draft : true ,
69
72
locale : '*' ,
70
73
overrideAccess : false ,
74
+ req,
71
75
user,
72
76
} )
73
77
} catch ( error ) {
@@ -87,6 +91,7 @@ export const VersionView: EditViewComponent = async (props) => {
87
91
depth : 1 ,
88
92
locale : '*' ,
89
93
overrideAccess : false ,
94
+ req,
90
95
user,
91
96
} )
92
97
@@ -96,6 +101,7 @@ export const VersionView: EditViewComponent = async (props) => {
96
101
draft : false ,
97
102
locale : '*' ,
98
103
overrideAccess : false ,
104
+ req,
99
105
user,
100
106
} )
101
107
@@ -105,6 +111,7 @@ export const VersionView: EditViewComponent = async (props) => {
105
111
draft : true ,
106
112
locale : '*' ,
107
113
overrideAccess : false ,
114
+ req,
108
115
user,
109
116
} )
110
117
} catch ( error ) {
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ export const VersionsView: EditViewComponent = async (props) => {
19
19
collectionConfig,
20
20
docID : id ,
21
21
globalConfig,
22
+ req,
22
23
req : {
23
24
i18n,
24
25
payload,
@@ -48,6 +49,7 @@ export const VersionsView: EditViewComponent = async (props) => {
48
49
limit : limitToUse ,
49
50
overrideAccess : false ,
50
51
page : page ? parseInt ( page . toString ( ) , 10 ) : undefined ,
52
+ req,
51
53
sort : sort as string ,
52
54
user,
53
55
where : {
@@ -70,6 +72,7 @@ export const VersionsView: EditViewComponent = async (props) => {
70
72
limit : limitToUse ,
71
73
overrideAccess : false ,
72
74
page : page ? parseInt ( page as string , 10 ) : undefined ,
75
+ req,
73
76
sort : sort as string ,
74
77
user,
75
78
} )
You can’t perform that action at this time.
0 commit comments