Restrict Content Type access but show fields in Views

Created on 25 January 2021, almost 4 years ago
Updated 28 April 2023, over 1 year ago

I'm using Drupal 9. I'd like to create a View of the access controlled content type that displays a Title, Image, Summary text and a link to the restricted node. The idea is that when an anonymous users or logged out user clicks to view restricted content, they should be redirected to the login page.

I've set my Views access to unrestricted and also tried setting the views access to Role based but it still doesn't show the Views content unless logged in with the correct user role.

Is this possible with this module to still show restricted content in a View?

✨ Feature request
Status

Closed: won't fix

Version

2.0

Component

User interface

Created by

πŸ‡ΏπŸ‡¦South Africa nravens

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡³πŸ‡΄Norway gisle Norway

    This should go into the the most recent branch.

  • Status changed to Closed: won't fix over 1 year ago
  • πŸ‡³πŸ‡΄Norway gisle Norway

    This is a marginal case, so this feature will not be added to this already too complex module.

    You should be able to implement it has a custom module, or by means of the workaround suggested by hexblot.

Production build 0.71.5 2024