Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
nopaque
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SFB 1288 - INF
nopaque
Commits
a7136df5
Commit
a7136df5
authored
2 years ago
by
Patrick Jentsch
Browse files
Options
Downloads
Patches
Plain Diff
let followers analyse corpus
parent
965bc9d6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/corpora/cqi_over_socketio/__init__.py
+3
-1
3 additions, 1 deletion
app/corpora/cqi_over_socketio/__init__.py
with
3 additions
and
1 deletion
app/corpora/cqi_over_socketio/__init__.py
+
3
−
1
View file @
a7136df5
...
@@ -62,7 +62,9 @@ def connect(auth):
...
@@ -62,7 +62,9 @@ def connect(auth):
if
corpus
is
None
:
if
corpus
is
None
:
# return {'code': 404, 'msg': 'Not Found'}
# return {'code': 404, 'msg': 'Not Found'}
raise
ConnectionRefusedError
(
'
Not Found
'
)
raise
ConnectionRefusedError
(
'
Not Found
'
)
if
not
(
corpus
.
user
==
current_user
or
current_user
.
is_administrator
()):
if
not
(
corpus
.
user
==
current_user
or
current_user
.
is_following_corpus
(
corpus
)
or
current_user
.
is_administrator
()):
# return {'code': 403, 'msg': 'Forbidden'}
# return {'code': 403, 'msg': 'Forbidden'}
raise
ConnectionRefusedError
(
'
Forbidden
'
)
raise
ConnectionRefusedError
(
'
Forbidden
'
)
if
corpus
.
status
not
in
[
if
corpus
.
status
not
in
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment