You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ebroda
changed the title
Deleting of tags is not checked in the backend
Deleting of tags: permission is not checked in the backend
Dec 4, 2024
ebroda
changed the title
Deleting of tags: permission is not checked in the backend
Deletion of tags: permission is not checked in the backend
Dec 4, 2024
Description of the issue
Currently, there is no check in the backend if a user is admin & allowed to delete tags.
So, if you manipulate the DOM and simply add the delete button, you can delete tags even without being an admin.
https://github.com/OpenEnergyPlatform/oeplatform/blob/develop/dataedit/templates/dataedit/tag_editor.html
Ideas of solution
Add check if user is admin before executing the deletion, somewhere here:
oeplatform/dataedit/views.py
Lines 671 to 673 in 4cd7b6a
Context and Environment
Workflow checklist
The text was updated successfully, but these errors were encountered: