Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
2554f781
Commit
2554f781
authored
5 years ago
by
Tanner Prestegard
Committed by
GraceDB
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add public access switch decorator to public alerts view
parent
8dbb1e34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/superevents/views.py
+3
-1
3 additions, 1 deletion
gracedb/superevents/views.py
with
3 additions
and
1 deletion
gracedb/superevents/views.py
+
3
−
1
View file @
2554f781
...
...
@@ -3,6 +3,7 @@ import os
from
lal
import
gpstime
from
django.urls
import
reverse
from
django.utils.decorators
import
method_decorator
from
django.views.generic.detail
import
DetailView
from
django.views.generic
import
ListView
...
...
@@ -12,6 +13,7 @@ from core.file_utils import get_file_list
from
events.models
import
EMGroup
from
events.mixins
import
DisplayFarMixin
from
events.permission_utils
import
is_external
from
ligoauth.decorators
import
public_if_public_access_allowed
from
.mixins
import
ExposeHideMixin
,
OperatorSignoffMixin
,
\
AdvocateSignoffMixin
,
PermissionsFilterMixin
,
ConfirmGwFormMixin
from
.models
import
Superevent
,
VOEvent
...
...
@@ -120,7 +122,7 @@ class SupereventFileList(SupereventDetailView):
# handled through the API. Links on the file list page point to the
# API file download page.
@method_decorator
(
public_if_public_access_allowed
,
name
=
'
dispatch
'
)
class
SupereventPublic
(
DisplayFarMixin
,
ListView
):
model
=
Superevent
template_name
=
'
superevents/public_alerts.html
'
...
...
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