app/soc/views/models/document.py
changeset 1135 24d695060863
parent 1095 0122dc66e5d2
child 1145 b2034ab78e3a
equal deleted inserted replaced
1134:493e7b5d3ab2 1135:24d695060863
    59       params: a dict with params for this View
    59       params: a dict with params for this View
    60     """
    60     """
    61 
    61 
    62     rights = access.Checker(params)
    62     rights = access.Checker(params)
    63     rights['any_access'] = ['allow']
    63     rights['any_access'] = ['allow']
    64     rights['show'] = ['checkIsDocumentPublic']
    64     rights['show'] = ['checkIsDocumentReadable']
       
    65     rights['create'] = ['checkIsUser']
       
    66     rights['edit'] = ['checkIsDocumentWritable']
       
    67     rights['delete'] = ['checkIsDocumentWritable']
    65 
    68 
    66     new_params = {}
    69     new_params = {}
    67     new_params['logic'] = document_logic
    70     new_params['logic'] = document_logic
    68     new_params['rights'] = rights
    71     new_params['rights'] = rights
    69 
    72