Problem/Motivation

The content roles autocomplete shows every content role despite of the user has manage $type_id content role permission.

Proposed resolution

Check whether the current user has permission to add/remove content role at all. Filter the autocomplete result based on the manage $type_id content role

Another approach: Remove the content roles part from the user edit form, and create a new user tab: Manage content roles with a set of checkboxes of the available content roles.

Comments

szantog created an issue. See original summary.

  • szantog committed 02c2ad6 on 8.x-1.x
    Issue #3133558: Content role widget doesn't have access restriction
    
szantog’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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