Is it possible to hide attachments from users based upon a client script?

Joshua Cassity
Kilo Guru

We are a provider of service for multiple agencies and the issue we have now is that each agency wants to hide the majority of their incident data away from one another based upon the caller and the assignment group that the incident is assigned to. They have agreed to leave some fields globally visible to everyone such as the Incident Number, Short Description, Assignment Group, etc... so that can keep an eye on cross-agency incidents. We also dynamically hide tabs as well to prevent them from getting access to the activity stream.

Is there a way to also hide or prevent access to the related attachments section on that incident using a client script, ACL or combination of the two?

1 ACCEPTED SOLUTION

Looking at another example of how to hide other elements on the page, I found the following line that seemed to have fixed the issue:



      gel('header_attachment').style.display='none';


Putting this into the client script that also hides some tabs on the incident form resulted in the entire attachment header being removed from the view. I think this is what we are looking to get accomplished.



Not for sure if this is deprecated or if it ever will be but hopefully not... lol


View solution in original post

6 REPLIES 6

I would agree with an ACL would be better but I don't know how to do that just for the Incident table and only when the user meets a list of criteria based upon the incident itself.



Ex. The currently logged in user would have to:




· Be the caller.



· Be a member of the same department as the caller.



· Be a member of the same department as the assignment group.



~ J ~


This is not working on a custom Scoped application. Could you please suggest what can be done?