Skip to content

Commit 3f723b1

Browse files
authored
Merge pull request #454 from jc21/develop
v2.3.1
2 parents 546f862 + e2e9835 commit 3f723b1

File tree

7 files changed

+25
-171
lines changed

7 files changed

+25
-171
lines changed

.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.0
1+
2.3.1

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pipeline {
192192
}
193193
post {
194194
always {
195-
//sh 'docker-compose down --rmi all --remove-orphans --volumes -t 30'
195+
sh 'docker-compose down --rmi all --remove-orphans --volumes -t 30'
196196
sh 'echo Reverting ownership'
197197
sh 'docker run --rm -v $(pwd):/data ${DOCKER_CI_TOOLS} chown -R $(id -u):$(id -g) /data'
198198
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<p align="center">
22
<img src="https://nginxproxymanager.com/github.png">
33
<br><br>
4-
<img src="https://img.shields.io/badge/version-2.3.0-green.svg?style=for-the-badge">
4+
<img src="https://img.shields.io/badge/version-2.3.1-green.svg?style=for-the-badge">
55
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
66
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
77
</a>

backend/internal/access-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const internalAccessList = {
7171
// re-fetch with expansions
7272
return internalAccessList.get(access, {
7373
id: data.id,
74-
expand: ['owner', 'items', 'clients', 'proxy_hosts.access_list.clients', 'proxy_hosts.access_list.items']
74+
expand: ['owner', 'items', 'clients', 'proxy_hosts.access_list.[clients,items]']
7575
}, true /* <- skip masking */);
7676
})
7777
.then((row) => {
@@ -216,7 +216,7 @@ const internalAccessList = {
216216
// re-fetch with expansions
217217
return internalAccessList.get(access, {
218218
id: data.id,
219-
expand: ['owner', 'items', 'clients', 'proxy_hosts.access_list.clients', 'proxy_hosts.access_list.items']
219+
expand: ['owner', 'items', 'clients', 'proxy_hosts.access_list.[clients,items]']
220220
}, true /* <- skip masking */);
221221
})
222222
.then((row) => {
@@ -254,7 +254,7 @@ const internalAccessList = {
254254
.joinRaw('LEFT JOIN `proxy_host` ON `proxy_host`.`access_list_id` = `access_list`.`id` AND `proxy_host`.`is_deleted` = 0')
255255
.where('access_list.is_deleted', 0)
256256
.andWhere('access_list.id', data.id)
257-
.allowEager('[owner,items,clients,proxy_hosts,proxy_hosts.access_list.clients,proxy_hosts.access_list.items]')
257+
.allowEager('[owner,items,clients,proxy_hosts.[*, access_list.[clients,items]]]')
258258
.omit(['access_list.is_deleted'])
259259
.first();
260260

backend/internal/proxy-host.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const internalProxyHost = {
7373
// re-fetch with cert
7474
return internalProxyHost.get(access, {
7575
id: row.id,
76-
expand: ['certificate', 'owner', 'access_list.clients', 'access_list.items']
76+
expand: ['certificate', 'owner', 'access_list.[clients,items]']
7777
});
7878
})
7979
.then((row) => {
@@ -186,7 +186,7 @@ const internalProxyHost = {
186186
.then(() => {
187187
return internalProxyHost.get(access, {
188188
id: data.id,
189-
expand: ['owner', 'certificate', 'access_list.clients', 'access_list.items']
189+
expand: ['owner', 'certificate', 'access_list.[clients,items]']
190190
})
191191
.then((row) => {
192192
// Configure nginx
@@ -219,7 +219,7 @@ const internalProxyHost = {
219219
.query()
220220
.where('is_deleted', 0)
221221
.andWhere('id', data.id)
222-
.allowEager('[owner,access_list,access_list.clients,access_list.items,certificate]')
222+
.allowEager('[owner,access_list,access_list.[clients,items],certificate]')
223223
.first();
224224

225225
if (access_data.permission_visibility !== 'all') {

0 commit comments

Comments
 (0)