app/soc/views/models/base.py
changeset 428 e0d5de282004
parent 418 e035f31d131e
child 429 e50e18936f06
equal deleted inserted replaced
427:d0de6c01d768 428:e0d5de282004
    94         that combines a Django view with sidebar menu info
    94         that combines a Django view with sidebar menu info
    95       kwargs: the Key Fields for the specified entity
    95       kwargs: the Key Fields for the specified entity
    96     """
    96     """
    97 
    97 
    98     try:
    98     try:
    99       self.checkAccess('edit', request)
    99       self.checkAccess('public', request)
   100     except soc.views.out_of_band.AccessViolationResponse, alt_response:
   100     except soc.views.out_of_band.AccessViolationResponse, alt_response:
   101       return alt_response.response()
   101       return alt_response.response()
   102 
   102 
   103     # create default template context for use with any templates
   103     # create default template context for use with any templates
   104     context = helper.responses.getUniversalContext(request)
   104     context = helper.responses.getUniversalContext(request)