The profile link in user_block.html.twig
is always displayed, even if user is not allowed to view the profile.
#1591
Labels
user_block.html.twig
is always displayed, even if user is not allowed to view the profile.
#1591
The profile link in
user_block.html.twig
is displayed, even if the user does not have 'VIEW' rights for the user profile.This issue is linked to SonataAdminBundle #7995.
A fix for the issue is adding a if testing for the presence of VIEW and EDIT roles for app.user:
Environment
Sonata packages
show
Symfony packages
show
PHP version
The text was updated successfully, but these errors were encountered: