**Apache Airflow version**: 2.1.1

**What happened**:

For user with "Op" role following menu items are not visible in navigation panel, however pages are accessible (roles has access to it):
- "Browse" -> "DAG Dependencies"
- "Admin" -> "Configurations"

**What you expected to happen**: available menu items in navigation panel
tests/www/test_security.py
with self.app.app_context():
            user = api_connexion_utils.create_user(
                self.app,
                "current_user_has_permissions",
                "current_user_has_permissions",
                permissions=[("can_some_action", "SomeBaseView")],
            )
            role = user.roles[0]
            mock_get_user_roles.return_value = [role]
            assert self.security_manager.current_user_has_permissions()
            
            role.permissions = []
            assert not self.security_manager.current_user_has_permissions()
            
            mock_get_user_roles.return_value = []
            assert not self.security_manager.current_user_has_permissions()
    def test_get_accessible_dag_ids(self):