Skip to content

Commit

Permalink
Merge pull request #674 from TaykYoku/5.0_fix_bugs
Browse files Browse the repository at this point in the history
[5.0] fix bugs
  • Loading branch information
fstagni authored Jun 23, 2022
2 parents 5c5404b + eb39d8a commit c8fc7f9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TransformationMonitorHandler(WebHandler):
DEFAULT_AUTHORIZATION = "authenticated"

def web_getSelectionData(self):
if self.getUserName() == "Anonymous":
if self.getUserName().lower() == "anonymous":
return {"prod": [["Insufficient rights"]]}

tsClient = TransformationClient()
Expand Down Expand Up @@ -78,7 +78,7 @@ def web_getSelectionData(self):

def web_getTransformationData(
self,
sort,
sort=None,
date=None,
endDate=None,
endTime=None,
Expand All @@ -97,7 +97,7 @@ def web_getTransformationData(
):
pagestart = datetime.datetime.utcnow()

if self.getUserName() == "Anonymous":
if self.getUserName().lower() == "anonymous":
return {"success": "false", "error": "You are not authorised"}

params = self.__prepareParameters(
Expand Down

0 comments on commit c8fc7f9

Please sign in to comment.