A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged


Drupal uses both route access and entity access. You need to add your access check in hook_entity_access() because the media entity module is denying create access. Use route access for non entity pages.

Only top voted, non community-wiki answers of a minimum length are eligible