allow ACL to be set empty on update
@@ -173,8 +173,7 @@ async def update_script(request: web.Request) -> web.Response:
if not isinstance(acl, str):
raise ValueError('ACL must be a string')
acl = acl.strip()
- if acl == "":
- raise ValueError('ACL cannot be empty')
+
storage = connect.get_storage_async()
payload = PayloadBuilder().SELECT("name").WHERE(['name', '=', name]).payload()
result = await storage.query_tbl_with_payload('control_script', payload)
