Roles without a specified limit defaults to zero, effectively denying create access.

Created on 25 August 2022, almost 2 years ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

I have used the role limit option on drupal commerce module's store content type. Where i have limit the particular role which can create only one content. For that i have done all the configuration using module. But excluding that role all other roles do not have any limit which is expected behavior. However, here it also check for the all the site role and set other roles limits to 0.

Steps to reproduce

1. Create new instance of drupal 9.
2. Install and enable module.
3. create new role "ABC" and give them permission to create basic page.
4. go to configuration of the module. /admin/structure/entity_limit.
5. Create role base limit on ABC and allow to create only 1 content.

Proposed resolution

Roles that have no limit specified should default to unlimited instead of zero.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India aarti zikre

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.

Production build 0.69.0 2024