Access check helper file added.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 06 Aug 2009 18:38:54 +0530
changeset 5 88ae12bc6280
parent 4 8d9da911ed7d
child 6 17cab73c49eb
child 33 2840389ee7f9
Access check helper file added.
app/projrev/views/helpers/access.py
app/projrev/views/proposal.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/projrev/views/helpers/access.py	Thu Aug 06 18:38:54 2009 +0530
@@ -0,0 +1,7 @@
+"""This module contains the access checks
+"""
+
+
+__authors__ = [
+  '"Madhusudan.C.S" <madhusudancs@gmail.com>',
+]
--- a/app/projrev/views/proposal.py	Thu Aug 06 18:15:57 2009 +0530
+++ b/app/projrev/views/proposal.py	Thu Aug 06 18:38:54 2009 +0530
@@ -17,8 +17,12 @@
 
 from projrev.models import Project
 from projrev.models import Proposal
+from projrev.views.helpers import access 
 from projrev.views.helpers import forms as projrev_forms
 
+rights = {}
+rights['getMicr'] = 'proposer'
+
 
 def getMicr(request):
   """View to get MICR Code from the user.