sidebarGetHtmlTag is an admin command

This commit is contained in:
shortcutme 2018-03-06 12:05:08 +01:00
parent d2ea8a001f
commit 666ef49924
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 0 deletions

View File

@ -429,6 +429,10 @@ class UiWebsocketPlugin(object):
body.append("</li>")
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
body = []