Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-sentry
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
istina
django-sentry
Commits
39840344
Commit
39840344
authored
12 years ago
by
David Cramer
Browse files
Options
Downloads
Patches
Plain Diff
Correct privileges on group_plugin_action and bump to 4.8.5
parent
f3e36851
No related branches found
Branches containing commit
Tags
4.8.5
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sentry/web/decorators.py
+1
-4
1 addition, 4 deletions
sentry/web/decorators.py
sentry/web/frontend/groups.py
+3
-2
3 additions, 2 deletions
sentry/web/frontend/groups.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
5 additions
and
7 deletions
sentry/web/decorators.py
+
1
−
4
View file @
39840344
...
...
@@ -133,10 +133,7 @@ def has_group_access(func):
@wraps
(
func
)
def
wrapped
(
request
,
project_id
,
group_id
,
*
args
,
**
kwargs
):
group
=
get_object_or_404
(
Group
,
pk
=
group_id
)
if
group
.
project
and
project_id
not
in
(
group
.
project
.
slug
,
str
(
group
.
project
.
id
)):
return
HttpResponse
(
status
=
404
)
group
=
get_object_or_404
(
Group
,
pk
=
group_id
,
project
=
project_id
)
if
group
.
is_public
:
return
func
(
request
,
group
.
project
,
group
,
*
args
,
**
kwargs
)
...
...
This diff is collapsed.
Click to expand it.
sentry/web/frontend/groups.py
+
3
−
2
View file @
39840344
...
...
@@ -336,8 +336,9 @@ def group_event_details_json(request, project, group, event_id_or_latest):
@login_required
@has_access
@has_group_access
def
group_plugin_action
(
request
,
project
,
group
,
slug
):
def
group_plugin_action
(
request
,
project
,
group_id
,
slug
):
group
=
get_object_or_404
(
Group
,
pk
=
group_id
,
project
=
project
)
try
:
plugin
=
plugins
.
get
(
slug
)
except
KeyError
:
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
39840344
...
...
@@ -75,7 +75,7 @@ dependency_links = [
setup
(
name
=
'
sentry
'
,
version
=
'
4.8.
4
'
,
version
=
'
4.8.
5
'
,
author
=
'
David Cramer
'
,
author_email
=
'
dcramer@gmail.com
'
,
url
=
'
http://github.com/dcramer/sentry
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment