mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-16 07:29:20 +00:00
[COM] Make the news visible for non-authenticated user and birthday visible for subriber only
This commit is contained in:
1 parent
38ef13d9b6
commit
9e0c4e70d4
9 files changed
+112
-94
No files matched your search
+2
-4
@@ -40,11 +40,9 @@ from club.models import Club
|
||||
|
||||
|
||||
def index(request, context=None):
|
||||
if request.user.is_authenticated():
|
||||
from com.views import NewsListView
|
||||
from com.views import NewsListView
|
||||
|
||||
return NewsListView.as_view()(request)
|
||||
return render(request, "core/index.jinja")
|
||||
return NewsListView.as_view()(request)
|
||||
|
||||
|
||||
class NotificationList(ListView):
|
||||
|
||||
Reference in new issue
Block a user