Commit 353c8c88 authored by fred's avatar fred

allow anybody to remove diffusions of their own episodes

parent d7480c98
......@@ -411,8 +411,6 @@ class EpisodeAddDiffusionView(CreateView):
class DiffusionDeleteView(RedirectView):
def get_redirect_url(self, emission_slug, slug, pk):
if not self.request.user.has_perm('emissions.delete_diffusion'):
raise PermissionDenied()
episode = Episode.objects.get(slug=slug, emission__slug=emission_slug)
if not self.request.user.can_manage(episode):
raise PermissionDenied()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment