{{!
    Copyright (C) 2017 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

{{#if allow_mapping_or_creating}}
  {{#if_instance_of parent_instance 'Audit'}}
    {{#if allow_creating}}
    {{#is_allowed_to_map parent_instance model.shortName}}
      <a href="javascript://"
         class="section-create action-button create-button"
         rel="tooltip"
         data-placement="left"
         data-original-title="Create {{model.shortName}}"
         data-toggle="modal-ajax-form"
         data-modal-reset="reset"
         data-modal-class="modal-wide"
         data-object-singular="{{model.model_singular}}"
         data-object-plural="{{model.table_plural}}">
        Create
      </a>
    {{/is_allowed_to_map}}
    {{/if}}
  {{/if_instance_of}}
{{/if}}

{{!
    Copyright (C) 2017 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

{{#if allow_mapping_or_creating}}
  {{#if_instance_of parent_instance 'Audit'}}
    {{#if allow_creating}}
    {{#is_allowed 'create' 'Assessment' context=parent_instance.context}}
      <a href="javascript://"
         class="section-create action-button create-button"
         rel="tooltip"
         data-placement="left"
         data-original-title="Create {{model.shortName}}"
         data-toggle="modal-ajax-form"
         data-modal-reset="reset"
         data-modal-class="modal-wide"
         data-object-singular="{{model.model_singular}}"
         data-object-plural="{{model.table_plural}}">
        Create
      </a>
    {{/is_allowed}}
    {{/if}}
  {{/if_instance_of}}
{{/if}}

Fix permission check on create assessment button
Fix permission check on create assessment button
