Revoke delete sample set permissions

LabKey Support Forum
Revoke delete sample set permissions eva pujadas  2018-11-01 07:15
Status: Closed
 

Dear LabKey developers,

Is there a way to disable the "Delete Set" button in the "Sample Set Properties" view (see attached screenshot) or to revoke delete permissions to a user while still allowing him/her to edit sample sets?

Thanks in advance,
Eva

 
 
Jon (LabKey DevOps) responded:  2018-11-15 12:37
Hi Eva,

No, there is no function built into LabKey to disable it or revoke delete permissions for a user in this manner. However, you could hide the button by using CSS code (specifically attribute selectors) to identify the link for the button and then applying the CSS code under the Project Settings > Resources. (https://www.labkey.org/Documentation/wiki-page.view?name=customizeLook#project)

However, the downside to using CSS to hide the button is that all users are affected and the button will be hidden from everyone, including admins. So if you need access to that button again, you will have to remove the CSS code to get access to that button again.

For more details on attribute selectors, please checkout the following resources:

https://www.w3schools.com/css/css_attribute_selectors.asp
https://stackoverflow.com/questions/9165479/how-to-hide-an-anchor-tag-by-href-id-using-css

Regards,

Jon