1
0
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:
kkthxbye-code
2023-01-13 22:12:12 +01:00
committed by Jeremy Stretch
parent d7c37d9dd6
commit fb3d1ef399
2 changed files with 5 additions and 0 deletions

View File

@ -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',