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

Dataset Editor: Offer more details via error message box when encounter insufficient permission error #3427

Closed t83714 closed 1 year ago

t83714 commented 1 year ago

Dataset Editor: Offer more details via the error message box when encounter insufficient permission errors

When users attempt to edit a dataset that they don't have sufficient permission, we only display the following error message box without any details:

CleanShot 2022-11-09 at 12 58 10@2x

We should offer more details (the server actually already specified the reason in response) so users understand which kind of permission they might need in order to proceed.

e.g.:

Error: you are not permitted to perform `object/record/update`.
t83714 commented 1 year ago

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