16 views

Symptoms


Failed to restrict the user on adding attachment when incident is in closed state in Mobile view.
 

Release


ALL

 

Cause


g_form.disableAttachments is not supported on Mobile, so the attachment button is not hidden on closed incident forms when in mobile view.

More information on this limitation can be found here:

Mobile client GlideForm (g form) scripting and migration

 

Resolution


Use one of these proposed solutions:
 
 
1. Modify the sys_attachment Create ACL to return false if the device is Mobile. /sys_security_acl.do?sys_id=0bcff9740a0006d400ae1a384168533a 

function getAttachmentCreateAnswer() { 
if (gs.isMobile()) { 
return false; 
} 
// … 
} 
 
 
 
 2. You can also create New 'Create' acl on sys_attachment table with code:
if (gs.isMobile()) { 
return false; 
} 
 
Note: This will not hide the attachment button, but when users will try to add attachment they will not be able to add it

Article Information

Last Updated:2018-04-26 21:19:47
Published:2018-04-12