Skip to content

Commit

Permalink
Merge 1283bbb into 2c0edb7
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Jun 28, 2019
2 parents 2c0edb7 + 1283bbb commit 1591688
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions fence/blueprints/data/indexd.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ def metadata(self):

@cached_property
def public(self):
return check_public(self.set_acls)
authz_resources = self.index_document.get("authz", []).extend(self.set_acls)
return "*" in authz_resources or "/open" in authz_resources

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


def check_public(set_acls):
if "*" in set_acls:
return True

0 comments on commit 1591688

Please sign in to comment.