Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dont allow configuration of plugins that arent enabled

  • Loading branch information...
commit 360f96b39714adba904d1eb0a90bb37dc7f0406d 1 parent 03e7f10
@dcramer dcramer authored
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'))
Please sign in to comment.
Something went wrong with that request. Please try again.