I'd like to see access control for media_internet providers. Maybe something like hook_menu() has.

function hook_media_internet_providers() {
  return array(
    'youtube' => array(
      'title' => 'youtube',
      'image' => 'youtube.jpg',
      'access callback' => 'user_access', // Default values could be user_access
      'access arguments' => array('add media from remote sources'), // and add media from remote sources
    ),
  );
}

Comments

mpgeek’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » Media Internet
Assigned: Unassigned » mpgeek
Status: Active » Postponed (maintainer needs more info)

@Nicklas, Media 1.x is feature frozen. But, if you'd like to see it in 2.x, are you asking for granular access control per internet source? Or something else?

Niklas Fiekas’s picture

Status: Postponed (maintainer needs more info) » Active

Exactly :)

mpgeek’s picture

Title: Access control for media_internet providers » Access control: add per-service granularity to media_internet permissions
Assigned: mpgeek » Unassigned
mpgeek’s picture

Wondering if this would be better handled by the client modules (media_youtube, media_vimeo, etc)?

Chris Matthews’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team