Browse files

Correct Team.objects.get_for_user so that a value of None for access …

…returns any access
  • Loading branch information...
1 parent d57120b commit 1ce6f683db4b82870b2d228820819c11a7f8e9c4 @dcramer dcramer committed Sep 9, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 setup.py
  2. +1 −1 src/sentry/manager.py
View
2 setup.py
@@ -69,7 +69,7 @@
setup(
name='sentry',
- version='5.0.1',
+ version='5.0.2',
author='David Cramer',
author_email='dcramer@gmail.com',
url='http://www.getsentry.com',
View
2 src/sentry/manager.py
@@ -1040,7 +1040,7 @@ def get_for_user(self, user, access=None):
"""
from sentry.models import TeamMember
- if access is None or not user.is_authenticated():
+ if not user.is_authenticated():
return SortedDict()
qs = TeamMember.objects.filter(

0 comments on commit 1ce6f68

Please sign in to comment.