This topic contains 2 replies, has 2 voices, and was last updated by Mike Kudelya 7 years, 5 months ago.
- Topic
A new role was created by cloning administrator role. Email attachment access was working fine. In that role, we removed all edit/delete access to business units, organizations users and password management. Email attachement download for that user with role stopped working (forbidden). We set all access back but still attachments were giving forbidden. Admin user can access the email attachments.
We cleared cache many times and deleted cache folder. Still no access. We got further debug info:
12[2016-09-13 09:36:47] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: "You do not get VIEW permission for this object- 10 class: Oro\Bundle\EmailBundle\Entity\EmailBody isa 1" at /var/www/html/orocrm/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php line 119 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException: You do not get VIEW permission for this object- 10 class: Oro\\Bundle\\EmailBundle\\Entity\\EmailBody isa 1 at /var/www/html/orocrm/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:119, Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException: You do not get VIEW permission for this object- 10 class: Oro\\Bundle\\EmailBundle\\Entity\\EmailBody isa 1 at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/SecurityBundle/Request/ParamConverter/DoctrineParamConverter.php:59)"} [][2016-09-13 09:37:13] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: "You do not get VIEW permission for this object- 4 class: Oro\Bundle\EmailBundle\Entity\EmailBody isa 1" at /var/www/html/orocrm/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php line 119 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException: You do not get VIEW permission for this object- 4 class: Oro\\Bundle\\EmailBundle\\Entity\\EmailBody isa 1 at /var/www/html/orocrm/vendor/symfony/symfony/src/Symfony/Component/Security/Http/Firewall/ExceptionListener.php:119, Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException: You do not get VIEW permission for this object- 4 class: Oro\\Bundle\\EmailBundle\\Entity\\EmailBody isa 1 at /var/www/html/orocrm/vendor/oro/platform/src/Oro/Bundle/SecurityBundle/Request/ParamConverter/DoctrineParamConverter.php:59)"} []Modified code at DoctrineParamConverter:59:
12throw new AccessDeniedException('You do not get ' . $acl->getPermission() . ' permission for this object- ' . (string)$object . " class: ". (string)$acl->getClass() . " isa " . is_a($object, $acl->getClass())Can you please help to indicate what might be the issue?
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.