mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Check for the extras.run_script permission when running scripts via. the API
This commit is contained in:
committed by
Jeremy Stretch
parent
d7c37d9dd6
commit
fb3d1ef399
@ -590,6 +590,7 @@ class ScriptTest(APITestCase):
|
||||
|
||||
@skipIf(not rq_worker_running, "RQ worker not running")
|
||||
def test_run_script(self):
|
||||
self.add_permissions('extras.run_script')
|
||||
|
||||
script_data = {
|
||||
'var1': 'FooBar',
|
||||
|
Reference in New Issue
Block a user