Skip to content

fix(admin): authorization for delete facility

Created by: HejdaJakub

  • There was used a policy which evaluates also given object (facility), so there is not possible to paste an empty array.
  • Now the button is removed, when user doesn't have any suficient role (facility admin or perun admin) and if user has facility admin, authorization for selected facility will be evaluated additionally.
  • This issue was discovered thanks to e2e tests and this PR should fix then again.

Merge request reports