Skip to content
Browse files

Dont allow configuration of plugins that arent enabled

  • Loading branch information...
1 parent 03e7f10 commit 360f96b39714adba904d1eb0a90bb37dc7f0406d @dcramer dcramer committed Apr 3, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 sentry/web/frontend/projects.py
View
3 sentry/web/frontend/projects.py
@@ -365,6 +365,9 @@ def configure_project_plugin(request, project, slug):
except KeyError:
return HttpResponseRedirect(reverse('sentry-manage-project', args=[project.pk]))
+ if not plugin.is_enabled(project):
+ return HttpResponseRedirect(reverse('sentry-manage-project', args=[project.pk]))
+
result = plugins.first('has_perm', request.user, 'configure_project_plugin', project, plugin)
if result is False and not request.user.is_superuser:
return HttpResponseRedirect(reverse('sentry'))

0 comments on commit 360f96b

Please sign in to comment.
Something went wrong with that request. Please try again.