irods-contrib / metalnx-web

Metalnx Web Application
https://metalnx.github.io/
BSD 3-Clause "New" or "Revised" License
36 stars 36 forks source link

[254] Conditional rendering based on permissionType #263

Closed connectbo closed 2 years ago

connectbo commented 2 years ago

After having a deeper understanding of Metalnx, I think this might be the easiest way to fix this issue. The java controller will now pass along a new attribute 'permissionType' and template page will do the conditional rendering job.

If a user has write permission or above (owner), action dropdown menu will be available. image

If not, it won't render. image

connectbo commented 2 years ago

@trel let me know if adding new attribute is a good approach. The access variable seems to be always true, so template cannot rely on it.

trel commented 2 years ago

If it renders as expected, yes, please # it.