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

Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3

parents 803604bc 381e2507
...@@ -212,8 +212,8 @@ def list_types(): ...@@ -212,8 +212,8 @@ def list_types():
user = current_user() user = current_user()
types = [ types = [
protocoltype for protocoltype in ProtocolType.query.all() protocoltype for protocoltype in ProtocolType.query.all()
if (protocoltype.public_group in user.groups if (protocoltype.has_private_view_right(user)
or protocoltype.private_group in user.groups or protocoltype.has_public_view_right(user)
or protocoltype.is_public)] or protocoltype.is_public)]
types = sorted(types, key=lambda t: t.short_name) types = sorted(types, key=lambda t: t.short_name)
types_table = ProtocolTypesTable(types) types_table = ProtocolTypesTable(types)
......
Markdown is supported
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