- Issue created by @josh.fabean
- πΊπΈUnited States josh.fabean Florida
After messing with this more, I was able to get it to work, but in a way that seems like I'm opening myself up to permissions issues by changing a permission check. In CertificateController:accessTab it returns the access checked of
$entity->access('certificate', $requestedUser, TRUE);
. The first param passed in is the operation you're checking against, but there is no "certificate" operation for nodes. I changed it to,$entity->access('view', $requestedUser, TRUE);
as there is a view permission on nodes.With this change, I still can only view my certificate if I'm logged in and have a Certificate Snapshot created for this use. If I go to view it logged in but a user who doesn't have an existing Certificate Snapshot I get a PHP error on trying to render it when nothing exists. For me this will the issue as I'm not displaying buttons to view cert if you don't have one generated, but I get this work around is not great as now it's trying to print it for everyone when they really shouldn't have one.
If someone has ideas, I'd gladly work on getting a better real patch working, but I did want to update this with steps in case others have a similar issue.