See #170: limit the amount of channels allowed per user

This commit is contained in:
Eliot Berriot 2020-02-14 11:50:30 +01:00
parent 11a42e362d
commit a3505d2099
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 52 additions and 2 deletions

View file

@ -138,6 +138,8 @@ class ChannelViewSet(
"update",
"partial_update",
]
if self.request.user.is_authenticated:
context["actor"] = self.request.user.actor
return context