magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
505 stars 92 forks source link

People with orgUnit constraint should only perform `read` operation on datasets not assigned to an orgUnit #3426

Closed t83714 closed 1 year ago

t83714 commented 1 year ago

Description

People with orgUnit constraints should only be able to perform the read operation on datasets not assigned to an orgUnit.

We currently allow people with the orgUnit constraint to perform any granted permissions on datasets not assigned to an orgUnit.

This use case is to grant public users read access to some public datasets.

However, it might potentially allow users from other departments who has been granted edit/update permission to edit / update the datasets.

To solve this issue, we will alter the rule in the policy that only allows read permission can be granted to other users via permissions with the orgUnit constant.

Technical Notes

t83714 commented 1 year ago

closed via PR: https://github.com/magda-io/magda/pull/3423