Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
G
gracedb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
99
Issues
99
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lscsoft
gracedb
Commits
2554f781
Commit
2554f781
authored
Jun 19, 2019
by
Tanner Prestegard
Committed by
GraceDB
Jun 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add public access switch decorator to public alerts view
parent
8dbb1e34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gracedb/superevents/views.py
gracedb/superevents/views.py
+3
-1
No files found.
gracedb/superevents/views.py
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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment