-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
description
Sentry has some permissions to allow access to sentry for non superusers. This is currently not working. Due to a typo in the view that checks this permission.
steps to reproduce
- assign a non superuser all sentry permisssions in django admin
- with that user log in
- browse to /sentry/
expected result
allowed access to sentry
actual result
you get redirected to sentry/login
version
1.3.14
fix
--- /tmp/views.py 2010-12-16 15:48:39.000000000 +0100
+++ /opt/python2.5/lib/python2.5/site-packages/sentry/views.py 2010-12-16 15:48:53.000000000 +0100
@@ -29,7 +29,7 @@
if not conf.PUBLIC:
if not request.user.is_authenticated():
return HttpResponseRedirect(reverse('sentry-login'))
- if not request.user.has_perm('sentry_groupedmessage.can_view'):
+ if not request.user.has_perm('sentry.can_view'):
return HttpResponseRedirect(reverse('sentry-login'))
return func(request, _args, *_kwargs)
wrapped.doc = func.doc