Commit f49de5c0 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

Extension: added server_only flag

prevents the attemt to load client code and the following error messages
parent 583d2ce8
......@@ -115,7 +115,11 @@ class RootController(AbstractController):
prefs = JSONData.get_values_by_key(db, user.id, key="preferences")
sess = JSONData.get_value(db, user.id, key="session", workspace_id=None)
extensions = self._server._extensions.keys()
extensions = [
name
for name, ext in self._server._extensions.items()
if not getattr(ext, "server_only", False)
]
if vispa.config("usermanagement", "autosetup", False):
allowed = user.has_permissions(
Project.get_by_name(db, vispa.config("usermanagement", "global_project", None)),
......@@ -212,7 +216,7 @@ class RootController(AbstractController):
raise cherrypy.HTTPError(403, "Guest login not allowed!")
db= cherrypy.request.db
# actual guest login
user, password = User.guest_login(db)
for groupname in vispa.config("usermanagement", "guest_group", "guest"):
......
......@@ -176,6 +176,7 @@ class LDAPExport(object):
class LDAPExportExtension(AbstractExtension):
server_only = True
def name(self):
return "ldap_export"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment