Code Repositories xandikos / master
If current user contains %(REMOTE_USER)s and it doesn't exist, assume there is no user logged in. Jelmer Vernooń≥ 2 months ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
838838 super(XandikosApp, self).__init__(backend)
839839
840840 def get_current_user_principal(env):
841 return current_user_principal % env
841 try:
842 return current_user_principal % env
843 except KeyError:
844 return None
842845 self.register_properties([
843846 webdav.ResourceTypeProperty(),
844847 webdav.CurrentUserPrincipalProperty(