Skip to content

Commit

Permalink
Merge pull request #1629 from grycap/stats
Browse files Browse the repository at this point in the history
Stats
  • Loading branch information
micafer authored Nov 5, 2024
2 parents a3d86a9 + b9c322a commit 55f0d0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IM/InfrastructureList.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ def _gen_where_from_auth(auth):
like = ""
if auth:
for elem in auth.getAuthInfo('InfrastructureManager'):
if elem.get("admin"):
return ""
if elem.get("username"):
if like:
like += " or "
Expand All @@ -266,6 +268,8 @@ def _gen_filter_from_auth(auth):
like = ""
if auth:
for elem in auth.getAuthInfo('InfrastructureManager'):
if elem.get("admin"):
return {}
if elem.get("username"):
if like:
like += "|"
Expand Down

0 comments on commit 55f0d0f

Please sign in to comment.