mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Allow fileQuery as CORS command
This commit is contained in:
parent
4fa48f7940
commit
e687d5db69
|
@ -27,7 +27,7 @@ class UiWebsocketPlugin(object):
|
||||||
if super(UiWebsocketPlugin, self).hasSitePermission(address, cmd=cmd):
|
if super(UiWebsocketPlugin, self).hasSitePermission(address, cmd=cmd):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
if not "Cors:%s" % address in self.site.settings["permissions"] or cmd not in ["dbQuery", "userGetSettings", "siteInfo"]:
|
if not "Cors:%s" % address in self.site.settings["permissions"] or cmd not in ["fileQuery", "dbQuery", "userGetSettings", "siteInfo"]:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue