• Julien Muchembled's avatar
    Check action guard instead of hardcoding required permission for object_view forms · d2a6d69e
    Julien Muchembled authored
    Before this commit, the condition to display the 'Save' button on object_view
    actions was to check whether the user has 'Modify portal content' permission.
    
    This check is moved to all scripts that are used as form action
    (e.g. Base_edit), using guards.
    
    Now, it's possible to add forms that can be saved under a different condition
    than having 'Modify portal content' permission.
    d2a6d69e
Form.py 50.8 KB