app/soc/views/models/notification.py
changeset 1176 c211191e7d81
parent 1163 d8c50be19232
child 1197 7785b5091f07
equal deleted inserted replaced
1175:b39345efab20 1176:c211191e7d81
    83     """
    83     """
    84 
    84 
    85     rights = access.Checker(params)
    85     rights = access.Checker(params)
    86     rights['unspecified'] = ['deny']
    86     rights['unspecified'] = ['deny']
    87     rights['edit'] = ['deny']
    87     rights['edit'] = ['deny']
    88     rights['show'] = [('checkIsMyEntity', notification_logic)]
    88     rights['show'] = [('checkIsMyEntity', [notification_logic, 'scope_path'])]
    89     rights['delete'] = [('checkIsMyEntity', notification_logic)]
    89     rights['delete'] = [('checkIsMyEntity', notification_logic)]
    90     rights['list'] = ['checkIsUser']
    90     rights['list'] = ['checkIsUser']
    91     # create is developer only for the time being to test functionality
    91     # create is developer only for the time being to test functionality
    92     rights['create'] = ['checkIsDeveloper']
    92     rights['create'] = ['checkIsDeveloper']
    93 
    93