Skip to content

Commit

Permalink
chore(inline): inline function only called one place
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Jun 28, 2019
1 parent 880e6c2 commit de85db0
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def metadata(self):

@cached_property
def public(self):
return check_public(self.authz)
return "*" in self.authz or "/open" in self.authz

@login_required({"data"})
def check_authorization(self, action):
Expand Down Expand Up @@ -829,8 +829,3 @@ def filter_auth_ids(action, list_auth_ids):
if checked_permission in values:
authorized_dbgaps.append(key)
return authorized_dbgaps


def check_public(authz):
if "*" in authz or "/open" in authz:
return True

0 comments on commit de85db0

Please sign in to comment.