From 37aa70c28e6f8ba4b9eda584fb68ca1e3646b3b7 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 10 Oct 2014 19:05:20 -0400 Subject: [PATCH] Notifications must check for the user OR an organization with the namespace name --- endpoints/notificationmethod.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/endpoints/notificationmethod.py b/endpoints/notificationmethod.py index 589ebd06d..78104ea2e 100644 --- a/endpoints/notificationmethod.py +++ b/endpoints/notificationmethod.py @@ -211,7 +211,7 @@ class FlowdockMethod(NotificationMethod): if not token: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return @@ -267,7 +267,7 @@ class HipchatMethod(NotificationMethod): if not token or not room_id: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return @@ -334,7 +334,7 @@ class SlackMethod(NotificationMethod): if not token or not subdomain: return - owner = model.get_user(notification.repository.namespace_user.username) + owner = model.get_user_or_org(notification.repository.namespace_user.username) if not owner: # Something went wrong. return