app/soc/views/models/club_admin.py
changeset 1067 ecf3df87b81c
parent 1025 1f83f05f522b
child 1076 063194eaf87b
equal deleted inserted replaced
1066:b22750a2b04a 1067:ecf3df87b81c
    55     rights['delete'] = ['checkIsDeveloper']
    55     rights['delete'] = ['checkIsDeveloper']
    56     rights['invite'] = ['checkIsClubAdminForClub']
    56     rights['invite'] = ['checkIsClubAdminForClub']
    57     rights['accept_invite'] = [('checkCanCreateFromRequest', 'club_admin')]
    57     rights['accept_invite'] = [('checkCanCreateFromRequest', 'club_admin')]
    58     rights['process_request'] = ['checkIsClubAdminForClub',
    58     rights['process_request'] = ['checkIsClubAdminForClub',
    59         ('checkCanProcessRequest', 'club_admin')]
    59         ('checkCanProcessRequest', 'club_admin')]
       
    60     rights['manage'] = [
       
    61         ('checkIsAllowedToManageRole', [soc.logic.models.club_admin,
       
    62              soc.logic.models.club_admin])]
    60 
    63 
    61     new_params = {}
    64     new_params = {}
    62     new_params['logic'] = soc.logic.models.club_admin.logic
    65     new_params['logic'] = soc.logic.models.club_admin.logic
    63     new_params['group_logic'] = club_logic.logic
    66     new_params['group_logic'] = club_logic.logic
    64     new_params['group_view'] = club_view.view
    67     new_params['group_view'] = club_view.view
   124 create = view.create
   127 create = view.create
   125 delete = view.delete
   128 delete = view.delete
   126 edit = view.edit
   129 edit = view.edit
   127 invite = view.invite
   130 invite = view.invite
   128 list = view.list
   131 list = view.list
       
   132 manage = view.manage
   129 process_request = view.processRequest
   133 process_request = view.processRequest
   130 public = view.public
   134 public = view.public
   131 export = view.export
   135 export = view.export