Problem/Motivation

Despite having placed an entity limit of 1 on the admin role (for a specific content type), all of my admins are able to create more than 1 of the limited entity.

Steps to reproduce

  1. Create entity limitation of 1 on the admin role for a content type.
  2. Add content of the limited content type (as any admin)
  3. Continue adding content past the allowed limit

Proposed resolution

Maybe we should just get rid of the admin selection in the role dropdown, instead of trying to make limitations on admin a feature.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

MegaKeegMan created an issue. See original summary.

megakeegman’s picture

Issue summary: View changes
megakeegman’s picture

Issue summary: View changes
wasare’s picture

Status: Active » Postponed (maintainer needs more info)

When you said "admin role" this meaning the default admin role from drupal? Maybe it is working as expected because the "drupal admin role" is just for "super admin" only. To limit your admin users the recommended is create a specific role for that setting the all permissions if needed.

Could you confirm if it your case?

  • wasare committed d6ff710 on 8.x-2.x
    Issue #3218518 by MegaKeegMan: Ignore entity limitations placed on admin...
wasare’s picture

Status: Postponed (maintainer needs more info) » Fixed

Later i realized your propose. In fact it is working as designed, but the config UI makes confuse.

I fixed this both cases when limiting by admin role and by users with admin role.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.