diff --git a/src/wuttaweb/templates/base.mako b/src/wuttaweb/templates/base.mako index 14d0306..6e5d004 100644 --- a/src/wuttaweb/templates/base.mako +++ b/src/wuttaweb/templates/base.mako @@ -682,13 +682,13 @@ <%def name="render_crud_header_buttons()"> % if master: % if master.viewing: - % if instance_editable and master.has_perm('edit'): + % if master.editable and instance_editable and master.has_perm('edit'): % endif - % if instance_deletable and master.has_perm('delete'): + % if master.deletable and instance_deletable and master.has_perm('delete'): % endif - % if instance_deletable and master.has_perm('delete'): + % if master.deletable and instance_deletable and master.has_perm('delete'): % endif - % if instance_editable and master.has_perm('edit'): + % if master.editable and instance_editable and master.has_perm('edit'):