Skip to content

Ubuntu + npm v2.7.1 - General user sees all '0' in Dashboard #777

@boolsee

Description

@boolsee

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    Yes
  • Are you sure you're not using someone else's docker image?
    Yes

Describe the bug

  • A clear and concise description of what the bug is.
    When login using a general user ID, Dashboard displays all '0' (zero). i.e. 0 Proxy Hosts, 0 Redirection Hosts and so on.

  • What version of Nginx Proxy Manager is reported on the login page?
    2.7.1 (2020.12.16 Latest)

To Reproduce
Steps to reproduce the behavior:

  1. Add a user ( no administrator ),, 'user AAA'
  2. Give 'All Items' + 'View Only' permission to 'user AAA' .
    (Regardless of whether 'Created items Only'/'All items' and 'Manage'/'View Only' are selected.
    It means the general user can see all '0' (zero) in Dashboard.
  3. Login as 'user AAA'
  4. Move to 'Dashboard'
  5. '0 Proxy Hosts'.
    It shows '0', but when I click on it I get 2 proxy hosts.

Expected behavior
User can see No. of items the same as Administrators.

Screenshots
ngx-prx-mgr 01
ngx-prx-mgr 02
ngx-prx-mgr 03

Operating System

  • Ubuntu 20.04
  • Docker
Client:
 Version:           19.03.8
 API version:       1.40
 Go version:        go1.13.8
 Git commit:        afacb8b7f0
 Built:             Wed Oct 14 19:43:43 2020
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          19.03.8
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.8
  Git commit:       afacb8b7f0
  Built:            Wed Oct 14 16:41:21 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.3.3-0ubuntu2
  GitCommit:        
 runc:
  Version:          spec: 1.0.1-dev
  GitCommit:        
 docker-init:
  Version:          0.18.0
  GitCommit:        
  • Docker-compose
docker-py version: 4.1.0
CPython version: 3.8.5
OpenSSL version: OpenSSL 1.1.1f  31 Mar 2020

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions