Ignore:
Timestamp:
29 Sep 2006, 10:31:51 (18 years ago)
Author:
Henrik Bettermann
Message:

[edit] link now depends on permission
(at the moment only implemented for faculty_index_view.pt)

Location:
WAeUP_SRP/trunk/skins/waeup_academics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/faculty_index_view.pt

    r586 r590  
    3737              <strong tal:content="row/title" /></a> </td>
    3838            <td tal:content="row/id"> </td>
    39             <td><a href="edit" tal:attributes="href string:${row/url}/external_edit_form"
     39
     40            <td>
     41            <a tal:condition="row/isManager"
     42                href="edit" tal:attributes="href string:${row/url}/external_edit_form"
    4043                target="edit"
    4144                onclick="javascript:window.open('','edit','width=600, height=700, directories=no, toolbar=no, location=no, menubar=no, scrollbars=yes, status=no, resizable=no, dependent=no')">
     
    4346                </a>
    4447            </td>
     48
    4549          </tr>
    4650        </table>
  • WAeUP_SRP/trunk/skins/waeup_academics/getDepartmentsInfo.py

    r573 r590  
    2323roles = member.getRoles()
    2424info['is_manager'] = 'Manager' in roles or 'SectionManager' in roles
    25 info['is_student'] = 'Student' in roles 
     25info['is_student'] = 'Student' in roles
    2626info['action'] = "%s" % context.absolute_url()
    2727info['choosen_ids'] = request.get('ids',[])
     
    3939    row['title'] = rd.LongTitle()
    4040    row['url'] = ro.absolute_url()
     41    row['isManager'] = mtool.checkPermission('Modify portal content', ro)
    4142    items.append(row)
    4243info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.