Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtFile::ExtFile::_access_permitted (   self,
  REQUEST 
) [private]

Check if the user is allowed to download the file 

Definition at line 497 of file ExtFile.py.

00497                                         :
        """ Check if the user is allowed to download the file """
        if hasattr(self,'use_download_permission_check') and \
           self.use_download_permission_check and \
           (REQUEST is None or 
            not getSecurityManager().getUser().has_permission(
                                        DownloadPermission, self)
           ):
            return 0
        else: 
            return 1
    
    def _get_content_type(self, file, body, id, content_type=None):


Generated by  Doxygen 1.6.0   Back to index