mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	Merge branch 'trombi' into 'master'
trombi: permissions fixs See merge request ae/Sith!241
This commit is contained in:
		@@ -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
 | 
			
		||||
    """
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user