Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
protokollsystem
proto3
Commits
3aec2b7a
Commit
3aec2b7a
authored
May 10, 2017
by
Administrator
Browse files
Merge branch 'master' of git.fsmpi.rwth-aachen.de:protokollsystem/proto3
parents
803604bc
381e2507
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
3aec2b7a
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment