ServiceNow / PySNC

Python API for ServiceNow
MIT License
91 stars 28 forks source link

get function does not give ACL errors #81

Open vetsin opened 1 year ago

vetsin commented 1 year ago

doing a gr.get(sys_id) does not show any errors when we have a RoleException

doing it via gr.query() however does -- need this to be more consistent

e.g.

        test = self.client.GlideRecord('sys_atf_test')
        test.add_query('sys_id', sys_id)
        test.query()

vs

        test = self.client.GlideRecord('sys_atf_test')
        test.get(sys_id)