Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
5151fc37
Verified
Commit
5151fc37
authored
Oct 02, 2019
by
Sli
Browse files
trombi: permissions fixs
parent
fd5cd56f
Pipeline
#2039
passed with stage
in 25 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
trombi/views.py
View file @
5151fc37
...
...
@@ -45,6 +45,7 @@ from core.views import (
TabedViewMixin
,
CanCreateMixin
,
QuickNotifMixin
,
UserIsLoggedMixin
,
)
from
core.models
import
User
from
club.models
import
Club
...
...
@@ -302,7 +303,9 @@ class UserTrombiForm(forms.Form):
)
class
UserTrombiToolsView
(
QuickNotifMixin
,
TrombiTabsMixin
,
TemplateView
):
class
UserTrombiToolsView
(
QuickNotifMixin
,
TrombiTabsMixin
,
UserIsLoggedMixin
,
TemplateView
):
"""
Display a user's trombi tools
"""
...
...
@@ -438,7 +441,7 @@ class UserTrombiProfileView(TrombiTabsMixin, DetailView):
return
super
(
UserTrombiProfileView
,
self
).
get
(
request
,
*
args
,
**
kwargs
)
class
TrombiCommentFormView
:
class
TrombiCommentFormView
(
UserIsLoggedMixin
)
:
"""
Create/edit a trombi comment
"""
...
...
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