Notifications must check for the user OR an organization with the namespace name
This commit is contained in:
parent
49f8629566
commit
37aa70c28e
1 changed files with 3 additions and 3 deletions
|
@ -211,7 +211,7 @@ class FlowdockMethod(NotificationMethod):
|
||||||
if not token:
|
if not token:
|
||||||
return
|
return
|
||||||
|
|
||||||
owner = model.get_user(notification.repository.namespace_user.username)
|
owner = model.get_user_or_org(notification.repository.namespace_user.username)
|
||||||
if not owner:
|
if not owner:
|
||||||
# Something went wrong.
|
# Something went wrong.
|
||||||
return
|
return
|
||||||
|
@ -267,7 +267,7 @@ class HipchatMethod(NotificationMethod):
|
||||||
if not token or not room_id:
|
if not token or not room_id:
|
||||||
return
|
return
|
||||||
|
|
||||||
owner = model.get_user(notification.repository.namespace_user.username)
|
owner = model.get_user_or_org(notification.repository.namespace_user.username)
|
||||||
if not owner:
|
if not owner:
|
||||||
# Something went wrong.
|
# Something went wrong.
|
||||||
return
|
return
|
||||||
|
@ -334,7 +334,7 @@ class SlackMethod(NotificationMethod):
|
||||||
if not token or not subdomain:
|
if not token or not subdomain:
|
||||||
return
|
return
|
||||||
|
|
||||||
owner = model.get_user(notification.repository.namespace_user.username)
|
owner = model.get_user_or_org(notification.repository.namespace_user.username)
|
||||||
if not owner:
|
if not owner:
|
||||||
# Something went wrong.
|
# Something went wrong.
|
||||||
return
|
return
|
||||||
|
|
Reference in a new issue