Change permission to "Print Report" in CiviCase
sites/default/files/civicrm/templates_c is where temporary compiled files live. You could try instead editing templates/CRM/Case/Form/CaseView.tpl but there is no such thing as hasAccessToMyCases (where you've just replaced &quot;All&quot; with &quot;My&quot;) so you'd need to use something else. But also note this will break when you upgrade since the file will get replaced.
What I would do is create an extension and in hook_civicrm_buildForm I would do something like:
if ($formName == 'CRM_Case_Form_CaseView') {
  $form-&gt;assign('hasAccessToAllCases',
    CRM_Core_Permission::check('access my cases and activities'));
}

This would also give access to the Audit Report, but you're probably ok with that since it's just a variation of the Print Report. I vaguely remember the original reason for restricting being something like &quot;this would make it too easy for somebody to print it and then give it to an unauthorized person, either on purpose or inadvertently&quot;. It was a different era.
But it may also allow access to other things it shouldn't. Would need to test.
Then you also need to edit this line in CRM/Case/xml/Menu/Case.xml which controls access to urls, and then clear civi caches after at Admin - System Settings - Cleanup Caches.
&lt;access_arguments&gt;access all cases and activities&lt;/access_arguments&gt;
change to
&lt;access_arguments&gt;access my cases and activities&lt;/access_arguments&gt;
Also when you get redirected like that, if you then visit any civi page it will show you the actual error.