trombi: permissions fixs

This commit is contained in:
Antoine Bartuccio 2019-10-02 14:56:04 +02:00
parent fd5cd56f81
commit 5151fc3792
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -45,6 +45,7 @@ from core.views import (
TabedViewMixin, TabedViewMixin,
CanCreateMixin, CanCreateMixin,
QuickNotifMixin, QuickNotifMixin,
UserIsLoggedMixin,
) )
from core.models import User from core.models import User
from club.models import Club 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 Display a user's trombi tools
""" """
@ -438,7 +441,7 @@ class UserTrombiProfileView(TrombiTabsMixin, DetailView):
return super(UserTrombiProfileView, self).get(request, *args, **kwargs) return super(UserTrombiProfileView, self).get(request, *args, **kwargs)
class TrombiCommentFormView: class TrombiCommentFormView(UserIsLoggedMixin):
""" """
Create/edit a trombi comment Create/edit a trombi comment
""" """