object.UpdateAllowed [=value]
This property contains record update permission flag. If set to True, record update operation is permitted.
This property is set depending on the user's group permissions if the form's Restricted property is set to “Yes” during design time. If Restricted property is set to “No”, UpdateAllowed property is always True unless modified in the Before Update event.
This property may be set according to some custom permission checking scheme to enable or disable record update operation. The update button is hidden only if the value is set before form's Before Show event is called (for instance in parent component's or Before Select event). Database update operation may be cancelled if the property is set to false in Before Update event.
If EditAd.user_id.Value = CCGetUserID() Then EditAd.UpdateAllowed = True Else EditAd.UpdateAllowed = False End If