Prevent user portraits from being clickable

Created on 19 March 2018, over 6 years ago
Updated 13 March 2023, almost 2 years ago

Problem/Motivation

Hello,

I created a content type "blog", but my concern is that the portrait that appears in the publication is clickable (which of course leads to a "Access denied / You are not allowed to access this page. "for an anonymous.

I would like to prevent the click on the portraits, since moreover the link towards my author is not active him either.

I do not see where I have to look.

Here are my permissions: https://image.noelshack.com/fichiers/2018/12/1/1521481297-screenshot-201...

Thanks

Steps to reproduce

  1. Go to the theme setting, 'Page element display' and tick 'user picture in posts'.
  2. First update your user account with a profile image (this is where the issue is).
  3. Add an article
  4. When you see the article as anonymous user, the author's profile image is clickable.
  5. When there is no permission to view other user's profile, it ends up in 'access denied page'.

Proposed resolution

Remaining tasks

User interface changes

Yes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Needs work

Version

10.1

Component
User module 

Last updated about 16 hours ago

Created by

🇫🇷France floown

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇿New Zealand quietone

    I tested this on Drupal 10.1.x, standard install. Using the steps to reproduce in #4 a user picture is not displayed for the admin user or anonymous. I eventually found that the display of the picture can be changed in the theme settings. Once that was done I could confirm the same results as in the Issue Summary.

  • Assigned to sakthi_dev
  • Issue was unassigned.
  • Status changed to Needs review almost 2 years ago
  • 🇮🇳India sakthi_dev

    Created a patch for disabling the clickable user picture in post (compact view mode) based on current user (anonymous or not).
    Please go through #15 🐛 Prevent user portraits from being clickable Needs work to reproduce the issue.
    Please review.

  • Status changed to Needs work almost 2 years ago
  • 🇺🇸United States smustgrave

    Thank you for your assistance on this issue.

    Removing credit from #17 as it's expected the patch to be tested before uploading and patch #5 still applies to 10.1

    Starting March 2023, simple rerolls, rebases, or merges will no longer receive issue credit. Only rerolls that address a merge conflict will be credited, and the merge conflict that was resolved must be documented in the text of an issue comment.
    To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback.
    See the issue credit guidelines for more information.

Production build 0.71.5 2024