Score:1

How can I set view permissions for content type to make it visible to autenticated users only?

ng flag

I want a content type to be only visible to authenticated users.

Now the edit permission dialog only offers permissions for modification, not for displaying the published content.

Until Drupal 9, I've used the Permissions by Term module to limit public access for certain page areas and content types. Since Permissions by Term is not yet Drupal 10 compatible I had to remove it.

Is there an elegant, ideally Drupal 10 native way, to limit certain content types from public access?

Edit permission dialog for content type

Score:0
mx flag

Drupal core doesn't come with the separate "View content" permission.

To get that functionality you need to search for a module that adds it.

I think all the contributed modules that provide additional permissions, at least the ones I've tried, can be described as "Drupal native" because they tie into Drupal permissions system, they don't bypass it.

Permissions by Term is a great module, although it is an overkill if you have clean permission separation based on Content Type, and you don't need fine-grained control of individual nodes within a Content Type. You can use a content-type-based permissions module instead:

I've tried Content Access in the past and I was happy with it. You should search the modules list to investigate all that are available and pick according to your needs.

david avatar
ng flag
Thanks for the answer. Please see my question: I had used _Permissions by Term_ until the Drupal 10 migration. Unfortunately this module is not Drupal 10 compatible yet. That's the source of my question. As you write, I agree it's also overkill, for an basic functionality which should be part of Drupal itself. I've also checked _Content Access_, but this module does not even have a stable Drupal 9 release. IMO the Drupal module ecosystem feels a bit broken, since even basic requirements are not covered. I'll keep on researching. :-)
mx flag
These requirements might seem basic to you but they aren't necessary in lot many cases, so it makes sense not to have that functionality bloat Drupal core. You can always contribute and get the modules you need get to newer versions faster. FOSS projects don't mean contributions have to be volunteered. Maybe you can find a programmer to do the work for a small bounty if you can't program yourself.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.