summaryrefslogtreecommitdiff
path: root/archaeological_operations/views.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-12-14 18:58:00 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-12-14 18:58:00 +0100
commit58dccb1cdf436f84827e20c40c96296a3778621d (patch)
tree9fe81e9e3a3eb84b1abc3fa799850f6116c0e0de /archaeological_operations/views.py
parent48926f80437f1e8f618271c614f57c8e20883865 (diff)
downloadIshtar-58dccb1cdf436f84827e20c40c96296a3778621d.tar.bz2
Ishtar-58dccb1cdf436f84827e20c40c96296a3778621d.zip
Adapt menus and urls for right management - check_rights_condition for filtering wizard steps
Diffstat (limited to 'archaeological_operations/views.py')
-rw-r--r--archaeological_operations/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_operations/views.py b/archaeological_operations/views.py
index ae722d2bc..d3d50d791 100644
--- a/archaeological_operations/views.py
+++ b/archaeological_operations/views.py
@@ -26,7 +26,7 @@ from django.shortcuts import render_to_response, redirect
from django.utils.translation import ugettext_lazy as _, pgettext_lazy
from ishtar_common.views import get_item, show_item, revert_item, new_item
-from ishtar_common.wizards import SearchWizard
+from ishtar_common.wizards import SearchWizard, check_rights_condition
from ishtar_common.forms import ClosingDateFormSelection
from ishtar_common.forms_common import AuthorFormset, TownFormset, \
SourceDeletionForm
@@ -220,6 +220,8 @@ operation_creation_wizard = OperationWizard.as_view(
wizard_steps,
label=_(u"New operation"),
condition_dict={
+ 'filechoice-operation_creation':
+ check_rights_condition(['view_file']),
'preventive-operation_creation':
is_preventive('general-operation_creation', models.OperationType,
'operation_type', 'prev_excavation'),