Ignore:
Timestamp:
31 Dec 2014, 08:18:54 (10 years ago)
Author:
Henrik Bettermann
Message:

We do nor need an extra permission for uploading passport pictures.

Location:
main/waeup.ikoba/trunk/src/waeup/ikoba
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser.py

    r12346 r12347  
    652652    grok.context(ICustomer)
    653653    grok.name('change_portrait')
    654     grok.require('waeup.uploadCustomerFile')
     654    grok.require('waeup.handleCustomer')
    655655    grok.template('filesuploadpage')
    656656    label = _('Change portrait')
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/browser_templates/basepage.pt

    r11971 r12347  
    2121    <tal:files content="structure provider:files" />
    2222  </tbody>
    23   <tfoot>
    24     <tr>
    25       <td>
    26         <input tal:repeat="action view/actions"
    27                tal:replace="structure action/render" />
    28       </td>
    29     </tr>
    30   </tfoot>
    3123</table>
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/fileviewlets.py

    r12224 r12347  
    6868    """
    6969    grok.view(CustomerFilesUploadPage)
    70     grok.require('waeup.uploadCustomerFile')
     70    grok.require('waeup.handleCustomer')
    7171
    7272
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/permissions.py

    r12097 r12347  
    5252
    5353
    54 class UploadCustomerFile(grok.Permission):
    55     grok.name('waeup.uploadCustomerFile')
    56 
    57 
    5854class ManageCustomer(grok.Permission):
    5955    grok.name('waeup.manageCustomer')
     
    7268    grok.name('waeup.local.CustomerRecordOwner')
    7369    grok.title(u'Customer Record Owner')
    74     grok.permissions('waeup.handleCustomer', 'waeup.uploadCustomerFile',
     70    grok.permissions('waeup.handleCustomer',
    7571                     'waeup.viewCustomer', 'waeup.editCustomerDocuments',
    7672                     'waeup.editContracts')
     
    9793    grok.permissions('waeup.viewCustomer', 'waeup.viewCustomers',
    9894                     'waeup.manageCustomer', 'waeup.viewCustomersContainer',
    99                      'waeup.editCustomerDocuments', 'waeup.uploadCustomerFile',
     95                     'waeup.editCustomerDocuments',
    10096                     'waeup.viewCustomersTab', 'waeup.triggerTransition',
    10197                     'waeup.editContracts')
  • main/waeup.ikoba/trunk/src/waeup/ikoba/permissions.py

    r12207 r12347  
    142142                     'waeup.viewCustomer', 'waeup.viewCustomers',
    143143                     'waeup.manageCustomer', 'waeup.viewCustomersContainer',
    144                      'waeup.editCustomerDocuments', 'waeup.uploadCustomerFile',
     144                     'waeup.editCustomerDocuments',
    145145                     'waeup.triggerTransition',
    146146                     'waeup.viewCustomersTab',
     
    169169                     'waeup.viewCustomer', 'waeup.viewCustomers',
    170170                     'waeup.manageCustomer', 'waeup.viewCustomersContainer',
    171                      'waeup.editCustomerDocuments', 'waeup.uploadCustomerFile',
     171                     'waeup.editCustomerDocuments',
    172172                     'waeup.triggerTransition',
    173173                     'waeup.viewCustomersTab',
Note: See TracChangeset for help on using the changeset viewer.