informed-governance-project / NISINP

Incident Notification Platform by @NC3-LU
https://nisinp.readthedocs.io
GNU Affero General Public License v3.0
5 stars 0 forks source link

Add rules on admin.py to prevent modification of some sector regulation #47

Closed jerolomb closed 8 months ago

jerolomb commented 8 months ago

Describe the bug Prevent a user from Regulator A modifying Sector Regulation of Regulator B in admin.py,

Maybe authorized him to duplicate

To Reproduce Steps to reproduce the behavior:

  1. Go to admin interface
  2. change a sector regulation which is not belonging to you (regulator != your regulator)

Expected behavior prevent this action

jerolomb commented 8 months ago

They can modify