GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
768 stars 258 forks source link

rbac fix: cannot add multiple time same privilege to a role #2285

Closed sylvain121 closed 9 months ago

sylvain121 commented 9 months ago

On current version of PUT /v3/access/roles/{role_id}/privileges/{privilege_id}, database allow inserting multiple time same privilege for a role. This generates an error when trying to DELETE the privilege. This patch silent ignores request if privilege is already applied for the role.

grossmj commented 9 months ago

Thanks 👍