app/soc/views/helper/access.py
changeset 2380 f23025455742
parent 2361 40b0c25a5793
child 2433 0ba41e115dbc
equal deleted inserted replaced
2378:b5c74f077f0a 2380:f23025455742
  1510     return
  1510     return
  1511 
  1511 
  1512   @allowSidebar
  1512   @allowSidebar
  1513   @allowDeveloper
  1513   @allowDeveloper
  1514   def checkIsDocumentReadable(self, django_args, key_name_field=None):
  1514   def checkIsDocumentReadable(self, django_args, key_name_field=None):
  1515     """Checks whether a document is readable.
  1515     """Checks whether a document is readable by the current user.
  1516 
  1516 
  1517     Args:
  1517     Args:
  1518       django_args: a dictionary with django's arguments
  1518       django_args: a dictionary with django's arguments
  1519       key_name_field: key name field
  1519       key_name_field: key name field
  1520     """
  1520     """
  1529                          document.read_access, django_args)
  1529                          document.read_access, django_args)
  1530 
  1530 
  1531   @denySidebar
  1531   @denySidebar
  1532   @allowDeveloper
  1532   @allowDeveloper
  1533   def checkIsDocumentWritable(self, django_args, key_name_field=None):
  1533   def checkIsDocumentWritable(self, django_args, key_name_field=None):
  1534     """Checks whether a document is writable.
  1534     """Checks whether a document is writable by the current user.
  1535 
  1535 
  1536     Args:
  1536     Args:
  1537       django_args: a dictionary with django's arguments
  1537       django_args: a dictionary with django's arguments
  1538       key_name_field: key name field
  1538       key_name_field: key name field
  1539     """
  1539     """