media.permissions.yml 934 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. administer media:
  2. title: 'Administer media'
  3. restrict access: TRUE
  4. administer media types:
  5. title: 'Administer media types'
  6. restrict access: TRUE
  7. view media:
  8. title: 'View media'
  9. # @todo: Deprecate some permissions in https://www.drupal.org/project/drupal/issues/2925459
  10. update media:
  11. title: 'Update own media'
  12. update any media:
  13. title: 'Update any media'
  14. delete media:
  15. title: 'Delete own media'
  16. delete any media:
  17. title: 'Delete any media'
  18. create media:
  19. title: 'Create media'
  20. view all media revisions:
  21. title: 'View all media revisions'
  22. description: 'To view a revision, you also need permission to view the media item.'
  23. access media overview:
  24. title: 'Access media overview'
  25. description: 'Users with this permission can access the media overview page.'
  26. permission_callbacks:
  27. - \Drupal\media\MediaPermissions::mediaTypePermissions
  28. view own unpublished media:
  29. title: 'View own unpublished media'