Problem/Motivation

Hi first of all, thank you for this module.
I found a bug and want to report it.

Tested on the fresh Drupal installation

Drupal Core: 10.2.3
Personnal Access Restriction : 3.0.5

Steps to reproduce

  1. Create 2 Roles (Role1, Role2)
  2. Create 2 Users with Role1 and Role2
  3. My config :
    My config

  4. My TestPage :
    test page

  5. Test done with the “Anonymous user” role (OK only to an anonymous user) :
    WORK

  6. Test done with the role “Role1” (User1):
    USER1


  7. NOT WORK


The module does not work with custom roles

Issue fork par-3425555

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

dimitrihokonmoy created an issue. See original summary.

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

vyasdhruv’s picture

vyasdhruv’s picture

vyasdhruv’s picture

Assigned: Unassigned » vyasdhruv
vyasdhruv’s picture

Assigned: vyasdhruv » Unassigned
Status: Active » Needs review
StatusFileSize
new3.03 KB

I have added the code-change and have raised MR. Till it gets merged, uploading the patch file for use.

dimitrihokonmoy’s picture

Hi, Thanks! Fixed.
GREAT JOB !

rsych’s picture

Status: Needs review » Fixed

Thanks @vyasdhruv, @dimitrihokonmoy I've published it in the new release https://www.drupal.org/project/par/releases/3.0.6.

rsych’s picture

Status: Fixed » Closed (fixed)