mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Restored login security to events
This commit is contained in:
@@ -1,14 +1,6 @@
|
||||
{% extends request.is_ajax|yesno:"base_ajax.html,base.html" %}
|
||||
{% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %}
|
||||
|
||||
{% block extra-head %}
|
||||
|
||||
<link rel="alternate" type="application/json+oembed"
|
||||
href="{{request.scheme}}://{{request.META.HTTP_HOST}}{{event.get_absolute_url}}oembed"
|
||||
title="RIGS Event Embed" />
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
{% if not request.is_ajax %}
|
||||
|
||||
@@ -80,7 +80,7 @@ urlpatterns = patterns('',
|
||||
name='activity_feed'),
|
||||
|
||||
url(r'^event/(?P<pk>\d+)/$',
|
||||
rigboard.EventDetail.as_view(),
|
||||
permission_required_with_403('RIGS.view_event')(rigboard.EventDetail.as_view()),
|
||||
name='event_detail'),
|
||||
url(r'^event/(?P<pk>\d+)/oembed/$',
|
||||
rigboard.EventOembed.as_view(),
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% block extra-head %}
|
||||
{% if next %}
|
||||
<link rel="alternate" type="application/json+oembed"
|
||||
href="{{next}}oembed"
|
||||
href="{{request.scheme}}://{{request.META.HTTP_HOST}}{{next}}oembed"
|
||||
title="RIGS Event Embed" />
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user