sidebarGetHtmlTag is an admin command
This commit is contained in:
parent
d2ea8a001f
commit
666ef49924
1 changed files with 4 additions and 0 deletions
|
@ -429,6 +429,10 @@ class UiWebsocketPlugin(object):
|
||||||
body.append("</li>")
|
body.append("</li>")
|
||||||
|
|
||||||
def actionSidebarGetHtmlTag(self, to):
|
def actionSidebarGetHtmlTag(self, to):
|
||||||
|
permissions = self.getPermissions(to)
|
||||||
|
if "ADMIN" not in permissions:
|
||||||
|
return self.response(to, "You don't have permission to run this command")
|
||||||
|
|
||||||
site = self.site
|
site = self.site
|
||||||
|
|
||||||
body = []
|
body = []
|
||||||
|
|
Loading…
Reference in a new issue