Commit 615f36b5 authored by Matthieu Fesselier's avatar Matthieu Fesselier

bugfix: disable permissions while not fixed

parent 69bdfb2c
Pipeline #3481 passed with stage
in 28 seconds
......@@ -27,7 +27,7 @@ class Notification(Model):
unread = models.BooleanField(default=True)
class Meta(Model.Meta):
permission_classes = [InboxPermissions]
#permission_classes = [InboxPermissions]
ordering = ['date']
def __str__(self):
......@@ -73,4 +73,4 @@ def send_request(target, object_iri):
@receiver(post_save, sender=Notification)
def send_email_on_notification(sender, instance, **kwargs):
send_mail('Notification on staging.happy-dev.fr', instance.summary, 'from@example.com', [instance.user.email],
fail_silently=False)
fail_silently=True)
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