Commit 3aec2b7a authored by Administrator's avatar Administrator
Browse files

Merge branch 'master' of

parents 803604bc 381e2507
......@@ -212,8 +212,8 @@ def list_types():
user = current_user()
types = [
protocoltype for protocoltype in ProtocolType.query.all()
if (protocoltype.public_group in user.groups
or protocoltype.private_group in user.groups
if (protocoltype.has_private_view_right(user)
or protocoltype.has_public_view_right(user)
or protocoltype.is_public)]
types = sorted(types, key=lambda t: t.short_name)
types_table = ProtocolTypesTable(types)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment