3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
254 stars 143 forks source link

[Bug]: Resulting rights are wrong in the admin interface #3916

Open Gustry opened 11 months ago

Gustry commented 11 months ago

What is the bug?

The resulting rights are wrong in the display. I think it's correct for the behavior, but it's just misleading in the admin interface or for a training.

Steps to reproduce the issue

  1. Launch the docker stack on master (or even 3.6 I think)
  2. Go to "Administration → Rights → 'Users' tab → Admins → Rights"

http://localhost:8130/admin.php/acl-admin/groups/rights?group=admins

  1. Managing Lizmap Web Client

image

All rights should be green at the bottom

Versions

Versions :

@nworr or @laurentj I'm not sure if it's a Jelix module or LWC source code.

Check Lizmap plugin

QGIS server version, only if the section above doesn't mention the QGIS Server version

No response

Operating system

Ubuntu

Browsers

Firefox

Browsers version

Latest

Relevant log output

No response

nworr commented 11 months ago

It's related to the jacl2db_admin jelix's module : https://github.com/jelix/jelix/tree/jelix-1.8.x/lib/jelix-admin-modules/jacl2db_admin.

IMHO, the right should not be green (neither red) , it miss a ❔icon to indicate the rights are not "global" but assigned to resources

Gustry commented 11 months ago

IMHO, the right should not be green (neither red) , it miss a ❔icon to indicate the rights are not "global" but assigned to resources

~Sorry, maybe I'm wrong, but is it not the purpose of the "resulting right", to kind of know if yes or not the user will be able to perform an action ?~

Sorry, yes, there are multiple resources...