Limit selectable roles

Created on 9 February 2022, almost 3 years ago
Updated 10 May 2023, over 1 year ago

The user who is editing the entity access by role field can select all roles.

This can be undesired in many cases.

In my use case the role "coordination" should be able to select "applicant a" oder "applicant b" but not "admin" or "general audience".

The best place for such a restriction would be the form mode of the entity for the entity access by role field.

Feature request
Status

Postponed

Version

1.0

Component

Code

Created by

🇩🇪Germany demonde

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.

  • 🇬🇧United Kingdom Shamrockonov

    Should roles that have the "Ignore 'Entity Access by Role Field' fields" permission set, also be excluded from the widget?

  • 🇩🇪Germany Anybody Porta Westfalica

    Should roles that have the "Ignore 'Entity Access by Role Field' fields" permission set, also be excluded from the widget?

    Well I think that would be hard to understand and is too global. I think we need this on the per-field level and eventually allow to set defaults on a settings page. Then we'd have sth. like a "use defaults" and "custom role selection" switch in the field...

    Happy to review MRs.

  • Status changed to Postponed over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Let's postpone this until someone needs it. Then he / she can prepare a patch to review. Not needed yet (for us).

Production build 0.71.5 2024