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
353530de
Commit
353530de
authored
Mar 14, 2017
by
Robin Sonnabend
Browse files
Set `next` on show_protocol login-redirect
/close
#57
parent
bf8d2d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
server.py
View file @
353530de
...
...
@@ -467,7 +467,7 @@ def show_protocol(protocol):
errors_table
=
ErrorsTable
(
protocol
.
errors
)
if
not
protocol
.
protocoltype
.
has_public_view_right
(
user
,
check_networks
=
False
):
# yes, feature
flash
(
"Die fehlen die nötigen Zugriffsrechte."
,
"alert-error"
)
return
redirect
(
request
.
args
.
get
(
"next"
)
or
url_for
(
"login"
))
return
redirect
(
request
.
args
.
get
(
"next"
)
or
url_for
(
"login"
,
next
=
request
.
url
))
visible_documents
=
[
document
for
document
in
protocol
.
documents
if
(
not
document
.
is_private
and
document
.
protocol
.
has_public_view_right
(
user
))
...
...
Write
Preview
Supports
Markdown
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