@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

AdamPS created an issue. See original summary.

AdamPS’s picture

Title: Use Enitty API in D8 » Use Entity API in D8

  • AdamPS committed 88686f9 on 8.x-2.x
    Issue #2716611 by AdamPS: Use Entity API in D8
    
AdamPS’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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