mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 22:53:09 +01:00
skip auth check if no users defined
This commit is contained in:
1 parent
64922f07ff
commit
df73c2a458
3 files changed
+8
-6
No files matched your search
@@ -73,7 +73,7 @@ const internalProxyHost = {
|
||||
// re-fetch with cert
|
||||
return internalProxyHost.get(access, {
|
||||
id: row.id,
|
||||
expand: ['certificate', 'owner', 'access_list.clients']
|
||||
expand: ['certificate', 'owner', 'access_list.clients', 'access_list.items']
|
||||
});
|
||||
})
|
||||
.then((row) => {
|
||||
@@ -186,7 +186,7 @@ const internalProxyHost = {
|
||||
.then(() => {
|
||||
return internalProxyHost.get(access, {
|
||||
id: data.id,
|
||||
expand: ['owner', 'certificate', 'access_list.clients']
|
||||
expand: ['owner', 'certificate', 'access_list.clients', 'access_list.items']
|
||||
})
|
||||
.then((row) => {
|
||||
// Configure nginx
|
||||
@@ -219,7 +219,7 @@ const internalProxyHost = {
|
||||
.query()
|
||||
.where('is_deleted', 0)
|
||||
.andWhere('id', data.id)
|
||||
.allowEager('[owner,access_list,access_list.clients,certificate]')
|
||||
.allowEager('[owner,access_list,access_list.clients,access_list.items,certificate]')
|
||||
.first();
|
||||
|
||||
if (access_data.permission_visibility !== 'all') {
|
||||
|
||||
Reference in new issue
Block a user