Sanparks skin shows update and delete action when user public reads a FGDC package
Here is an email from Judith:
I have successfully uploaded a number of GIS layers What concerns me is
that if I don't login as myself but just as a public person when I open
one of the GIS files Say Kruger National Park boundary the options that
I get below still has the update and delete buttons. Surely they should
only be allowed to download the files
Tx a mil
I tried those actions (update and delete), fortunately they didn't work for user public. But it is still confusing. We needs to hide them for user public.
#2 Updated by ben leinfelder almost 10 years ago
#3 Updated by Jing Tao almost 10 years ago
If fgdc-root.xsl, it has the control to display the buttons or not. The control is the parameter "enableFGDCediting". However, this param was not be set in Metacat. In MetacatHandler class, we add code to set parameter "enableFGDCediting", then it works.
I have a question about the "Set Access" button. Currently, if a doc is NOT public readable, the "public read" check box for the button will be unchecked; if a doc is public readable, the "public read" check box for the button will be checked. I think we should do the opposite way.What do you think?
#4 Updated by ben leinfelder almost 10 years ago
I think the checkbox should reflect the current state of the document. If it is unchecked, that indicates that it is not publicly readable. If I check it and update the document, then it should stay checked to indicate that my change was successful. If I wish to revoke public read access, I should be able to uncheck the box and update the document at which point it will remain unchecked to indicate that the document is not publicly readable.