{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: brad@reciprocitylabs.com
    Maintained By: brad@reciprocitylabs.com
}}

{{^if_equals parent_instance.status 'Verified'}}
  {{#using cycle=parent_instance.cycle}}
    {{#if cycle.is_current}}
    {{#is_allowed 'update' instance}}
      <li class="tree-footer tree-item-add inner-tree-footer non-stick">
        <a href="javascript://" class="btn btn-primary btn-mini section-create" data-object-singular-override="Comment" data-toggle="modal-ajax-form" data-modal-reset="reset" data-dirty="#regulations, #combo" data-route="regulations" data-modal-class="modal-wide" data-object-singular="CycleTaskEntry" data-object-plural="cycle_task_entries" data-object-params='{ "cycle_task_group_object_task": {{parent_instance.id}}, "cycle": {{parent_instance.cycle.id}}, "context": {{parent_instance.context.id}} }'>
          Add Comment
        </a>
      </li>
    {{/is_allowed}}
    {{/if}}
  {{/using}}
{{/if_equals}}

{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: brad@reciprocitylabs.com
    Maintained By: brad@reciprocitylabs.com
}}

{{^if_equals parent_instance.status 'Verified'}}
  {{#using cycle=parent_instance.cycle}}
    {{#if cycle.is_current}}
    {{#is_allowed 'update' instance context='for'}}
      <li class="tree-footer tree-item-add inner-tree-footer non-stick">
        <a href="javascript://" class="btn btn-primary btn-mini section-create" data-object-singular-override="Comment" data-toggle="modal-ajax-form" data-modal-reset="reset" data-dirty="#regulations, #combo" data-route="regulations" data-modal-class="modal-wide" data-object-singular="CycleTaskEntry" data-object-plural="cycle_task_entries" data-object-params='{ "cycle_task_group_object_task": {{parent_instance.id}}, "cycle": {{parent_instance.cycle.id}}, "context": {{parent_instance.context.id}} }'>
          Add Comment
        </a>
      </li>
    {{/is_allowed}}
    {{/if}}
  {{/using}}
{{/if_equals}}

Fix Reviewer RBAC check for Add comment button
Fix Reviewer RBAC check for Add comment button
