Ignore:
Timestamp:
9 Mar 2008, 23:26:31 (17 years ago)
Author:
Henrik Bettermann
Message:

import only allowed for admin

Location:
WAeUP_SRP/base/skins/waeup_upload
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt

    r3306 r3307  
    144144                 />
    145145          <input type="submit" name="import_uploads:method" value="Import"
     146                 tal:condition="info/import_allowed"
    146147                 class="destructive" i18n:attributes="value"
    147148                 tal:attributes="onclick python:'return window.confirm(\'%s\')' %
  • WAeUP_SRP/base/skins/waeup_upload/uploads_index.py

    r3305 r3307  
    9696info['imported'] = imported
    9797info['importable'] = importable
     98info['import_allowed'] = str(member) in ('admin','joachim',)
    9899
    99100validate = "upload" in request.keys()
     
    121122            break
    122123        psm = "Upload object exists!"
    123     logger.info('%s views upload section' % member)   
     124    logger.info('%s views upload section' % member)
    124125    return context.uploads_form(rendered = res,
    125126                                        psm = psm,
Note: See TracChangeset for help on using the changeset viewer.