Disabling the pencil edit link of a grid app programmatically

Hi,
I’ve the next problem: I have a grid that have a link to a form app to edit. The problem is that depending the value os a global session var [priv], this pencil must be disabled and hidded. What’s the way to do that if possible?

[SOLVED] Just in the onApplicationInit, of my grid app, I’ve added the next code:



sc_apl_conf(grid_collectives_protocols, "lig_edit", "off");