Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
@MegaChriz said in #2373971: Drupal 8 port of Administer Users by Role
By looking at the code provided in #4 it seems access checks are handled by what looks like altering existing routes. Isn't it much better to use the Entity Access API provided in D8 core and implement hook_entity_access()? The D8 version of User protect (which fulfils a similar use case) also does this.
Comments
Comment #2
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedComment #4
AdamPS CreditAttribution: AdamPS at AlbanyWeb commented