Ignore:
Timestamp:
7 Dec 2014, 22:24:03 (10 years ago)
Author:
Henrik Bettermann
Message:

We need to protect also the manage form page of documents. Officers are only allowed to edit documents in state created.

File:
1 edited

Legend:

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

    r12097 r12166  
    327327    target = 'manage'
    328328
     329    @property
     330    def target_url(self):
     331        if not self.context.is_editable_by_manager:
     332            return ''
     333        return self.view.url(self.view.context, self.target)
     334
    329335
    330336class DocumentEditActionButton(ManageActionButton):
     
    338344    @property
    339345    def target_url(self):
    340         if not self.context.is_editable:
     346        if not self.context.is_editable_by_customer:
    341347            return ''
    342348        return self.view.url(self.view.context, self.target)
Note: See TracChangeset for help on using the changeset viewer.