When a role does not have the correct permissions then you get the shopware popup about missing permissions (frosh_mail_archive:read). Also the settings panel is displayed but can not be used as you do not have the correct permissions.
This PR tries to alleviate the above;
Ensures the initial repository search is only done if permission frosh_mail_archive:read is allowed.
Ensures the settings navigation item is only rendered if permission frosh_mail_archive:read is allowed.
Ensures the settings pages are only accessible via route if permission frosh_mail_archive:read is allowed.
A possible future improvement would be to include a proper acl for the frosh_mail_archive detail actions (resend, hide the customer button etc). But is out of scope for this PR - which was to remove the permissions missing popups and unusable settings navigation items.
When a role does not have the correct permissions then you get the shopware popup about missing permissions (
frosh_mail_archive:read
). Also the settings panel is displayed but can not be used as you do not have the correct permissions.This PR tries to alleviate the above;
frosh_mail_archive:read
is allowed.frosh_mail_archive:read
is allowed.frosh_mail_archive:read
is allowed.A possible future improvement would be to include a proper acl for the frosh_mail_archive detail actions (resend, hide the customer button etc). But is out of scope for this PR - which was to remove the permissions missing popups and unusable settings navigation items.