app/soc/views/models/sponsor.py
changeset 1063 f529113e1bc5
parent 1025 1f83f05f522b
child 1071 dfa86ed03a66
equal deleted inserted replaced
1062:f7ee38ebfe1c 1063:f529113e1bc5
    45       params: a dict with params for this View
    45       params: a dict with params for this View
    46     """    
    46     """    
    47 
    47 
    48     rights = access.Checker(params)
    48     rights = access.Checker(params)
    49     rights['create'] = ['checkIsDeveloper']
    49     rights['create'] = ['checkIsDeveloper']
    50     rights['edit'] = ['checkIsHostForSponsor']
    50     rights['edit'] = ['checkIsHostForSponsor', 
       
    51         ('checkIsGroupActive', soc.logic.models.sponsor)]
    51     rights['delete'] = ['checkIsDeveloper']
    52     rights['delete'] = ['checkIsDeveloper']
    52     rights['home'] = ['checkIsHostForSponsor']
    53     rights['home'] = ['checkIsHostForSponsor']
    53     rights['list'] = ['checkIsDeveloper']
    54     rights['list'] = ['checkIsDeveloper']
    54     rights['list_requests'] = ['checkIsHostForSponsor']
    55     rights['list_requests'] = ['checkIsHostForSponsor']
    55     rights['list_roles'] = ['checkIsHostForSponsor']
    56     rights['list_roles'] = ['checkIsHostForSponsor']