app/soc/views/models/program.py
changeset 1178 f0de31a14797
parent 1163 d8c50be19232
child 1189 14357ec13647
equal deleted inserted replaced
1177:53c802c2a2e2 1178:f0de31a14797
   157 
   157 
   158       try:
   158       try:
   159         # check if the current user is a host for this program
   159         # check if the current user is a host for this program
   160         rights.doCachedCheck('checkIsHostForProgram', 
   160         rights.doCachedCheck('checkIsHostForProgram', 
   161             {'scope_path': entity.scope_path,
   161             {'scope_path': entity.scope_path,
   162             'link_id': entity.link_id,
   162             'link_id': entity.link_id}, [])
   163             'workflow': entity.workflow}, [])
       
   164 
   163 
   165         if entity.status == 'invisible':
   164         if entity.status == 'invisible':
   166           # still add the document links so hosts can see how it looks like
   165           # still add the document links so hosts can see how it looks like
   167           items += document_view.view.getMenusForScope(entity, params)
   166           items += document_view.view.getMenusForScope(entity, params)
   168 
   167