Skip to content
Snippets Groups Projects
Commit e567a3c1 authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

fix Container._get for public data

parent f57d74bf
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ class Container(base.RequestHandler):
if not container.get('public', False):
self.abort(403, 'this ' + dbc_name + 'is not public')
del container['permissions']
if not self.superuser_request:
elif not self.superuser_request:
if not user_perm:
self.abort(403, self.uid + ' does not have permissions on this ' + dbc_name)
if min_role and users.INTEGER_ROLES[user_perm['access']] < users.INTEGER_ROLES[min_role]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment