{{!
    Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: ivan@reciprocitylabs.com
    Maintained By: ivan@reciprocitylabs.com
}}
{{#if allow_mapping_or_creating}}
{{#if_instance_of parent_instance 'Program'}}
{{#if allow_creating}}
{{#is_allowed 'create' model.shortName context=parent_instance.context.id}}
  <a href="javascript://" class="section-create" rel="tooltip" data-placement="left" data-original-title="Create {{model.title_singular}}" data-toggle="modal-ajax-form" data-modal-reset="reset" data-modal-class="modal-wide" data-object-singular="Audit" data-object-plural="audits" data-object-params='{ "{{parent_instance.class.table_singular}}": { "id" : {{parent_instance.id}}, "title" : "{{parent_instance.title}}" }, "context": { "id" : {{firstexist parent_instance.context.id "null"}}, "href" : "{{parent_instance.context.href}}", "type" : "{{parent_instance.context.type}}" } }'>
    <i class="grcicon-add-black"></i>
  </a>
{{/is_allowed}}
{{/if}}
{{/if_instance_of}}
{{/if}}

{{!
    Copyright (C) 2015 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: ivan@reciprocitylabs.com
    Maintained By: ivan@reciprocitylabs.com
}}
{{#if allow_mapping_or_creating}}
{{#if_instance_of parent_instance 'Program'}}
{{#if allow_creating}}
{{#is_allowed 'update' parent_instance}}
  <a href="javascript://" class="section-create" rel="tooltip" data-placement="left" data-original-title="Create {{model.title_singular}}" data-toggle="modal-ajax-form" data-modal-reset="reset" data-modal-class="modal-wide" data-object-singular="Audit" data-object-plural="audits" data-object-params='{ "{{parent_instance.class.table_singular}}": { "id" : {{parent_instance.id}}, "title" : "{{parent_instance.title}}" }, "context": { "id" : {{firstexist parent_instance.context.id "null"}}, "href" : "{{parent_instance.context.href}}", "type" : "{{parent_instance.context.type}}" } }'>
    <i class="grcicon-add-black"></i>
  </a>
{{/is_allowed}}
{{/if}}
{{/if_instance_of}}
{{/if}}

Fix create Audit button for Creator
Fix create Audit button for Creator

Now that anyone has create permissions we need to check for update on
parent instance
