Skip to content

Instantly share code, notes, and snippets.

@yec
yec / media.patch
Created January 17, 2013 01:55
commit c49692be4b1e9990bf7b01a8202 and drush on media-7.x-2.0-unstable7
diff --git a/includes/MediaBrowserUpload.inc b/includes/MediaBrowserUpload.inc
index 194c109..65e9977 100644
--- a/includes/MediaBrowserUpload.inc
+++ b/includes/MediaBrowserUpload.inc
@@ -15,7 +15,7 @@ class MediaBrowserUpload extends MediaBrowserPlugin {
* Implements MediaBrowserPluginInterface::access().
*/
public function access($account = NULL) {
- return file_entity_access('create', $account);
+ return file_entity_access('create', NULL, $account);