mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[PR #608] [MERGED] Fix for access list getAll when not granted all permissions #3273
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#3273
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/NginxProxyManager/nginx-proxy-manager/pull/608
Author: @Philip-Mooney
Created: 9/19/2020
Status: ✅ Merged
Merged: 10/14/2020
Merged by: @jc21
Base:
develop← Head:master📝 Commits (2)
28f7208Merge pull request #592 from jc21/develop3e10b7bFix for access list getAll when not granted all permissions📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
backend/internal/access-list.js(+1 -1)📄 Description
When calling access list getAll without permission visibility set as 'all', the access list page gets a 500.
Error log:
[9/19/2020] [10:05:07 PM] [Express ] › ⚠ warning select
access_list.*, COUNT(proxy_host.id) as proxy_host_count fromaccess_listLEFT JOINproxy_hostONproxy_host.access_list_id=access_list.idANDproxy_host.is_deleted= 0 whereaccess_list.is_deleted= 0 andowner_user_id= 1 group byaccess_list.idorder byaccess_list.nameASC - ER_NON_UNIQ_ERROR: Column 'owner_user_id' in where clause is ambiguousCorrect command:
Reproduction steps with a new instance:
Expected behaviour:
Access list for just current user (empty in case of new instance)
Actual behaviour
500 Internal Server Error
Comments
The issue is fixed for get in https://github.com/jc21/nginx-proxy-manager/blob/master/backend/internal/access-list.js#L262, but not in getAll
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.