Query is marked as read-only
When I open a query, it says it's marked as read-only and the Save button is disabled. Upon checking on the code, it's checking for the CheckQueryObjectSecurity. Anyone knows how this can be avoided? Below is the code I found.
&gsQueryName = QRYSELECT_WRK.QRYNAME;
&gbReadOnly = False;
If QRYSELECT_WRK.QRYOWNERTRANS = "U" Then
&gbIsPublic = True;
&nResult = %Session.CheckQueryObjectSecurity(&gsQueryName);
If &nResult = 1 Then
MessageBox(%MsgStyle_OK, "", 139, 215, "###This query is marked as read-only. The save button has been disabled.");
&gbReadOnly = True;
Else
If &nResult = 2 Then
MessageBox(%MsgStyle_OK, "", 12, 2, "###You are not authorized to access the definition %1.", &gsQueryName);
Return;
End-If;
End-If;
Else
&gbIsPublic = False;