Skip to content

sentry permissions not working (patch included) #60

@harmv

Description

@harmv

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

  1. assign a non superuser all sentry permisssions in django admin
  2. with that user log in
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions