Added permission on default search form
authorThierry Florac <tflorac@ulthar.net>
Sat, 28 Feb 2015 15:12:48 +0100
changeset 3 9dbd2ca24a55
parent 2 0f135e3c84b1
child 4 7d4e3da55ba1
Added permission on default search form
src/pyams_form/search.py
--- a/src/pyams_form/search.py	Sat Feb 28 15:10:46 2015 +0100
+++ b/src/pyams_form/search.py	Sat Feb 28 15:12:48 2015 +0100
@@ -60,6 +60,7 @@
 
     ajax_handler = 'search-results.html'
     form_target = '#search-results'
+    edit_permission = 'system.view'
 
     def updateActions(self):
         super(SearchForm, self).updateActions()