Problem/Motivation

Actually, when adding content that should not have access, we have to set the PAR role and "How to show the page" settings.
Is there a possibility to set these settings by default when creating new content?

Steps to reproduce

Anonymous peoples are not allowed to see restricted pages, so each new content (node) added should have the Anonymous role set by default.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork par-3453114

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Chrigou created an issue. See original summary.

Sahana _N made their first commit to this issue’s fork.

sahana _n’s picture

Status: Active » Needs review

Created a MR Please review.

nidhi27’s picture

Status: Needs review » Needs work

Hi @sahana _n,

I have reviewed the MR for this issue. In this solution, for the first time anonymous user option is getting selected by default but if we add another roles and save, and again edit the form at that time also its showing anonymous only.

Expected result:

It should show the newly selected roles as well.

nidhi27’s picture

Hi @rsych,

Do you need this functionality? If yes than will update the MR.
Thanks!

rsych made their first commit to this issue’s fork.

  • rsych committed 1fc531b8 on 3.0.x authored by sahana _n
    Issue #3453114 by sahana _n: Ability to set PAR by default when adding...
rsych’s picture

Hello @nidhi27, yes please.

nidhi27’s picture

Hi @rsych,

These changes are merged to current release. It is having following issues.
For the first time anonymous user option is getting selected by default but if we add another roles and save, and again edit the form at that time also its showing anonymous only.

And in order to achieve this functionality I think there will be a lot of work in current project including schema change. I would suggest to keep as is and revert the current changes.

Thanks!

  • rsych committed c1e443e0 on 3.0.x
    Issue #3453114 by rsych: revered changes.
    
rsych’s picture

Version: 3.0.6 » 3.0.9

Reverted changes.