Introduced on commit in #1677054: Use file_entity_access() instead of media_access(), the access check for the media browser upload plugin uses the file_entity_access() API incorrectly.

I'm not sure exactly what the consequences are, but most likely it will result in the "create" permissions not being checked correctly.

Comments

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new489 bytes

I guess it depends on if $account is actually passed in; in the case where it isn't, it's NULL anyway so this bug has no effect.

Easy to fix either way, though. The attached patch is untested but I'm pretty sure it should work.

ParisLiakos’s picture

Status: Needs review » Reviewed & tested by the community

ugh, good catch!

ParisLiakos’s picture

Status: Reviewed & tested by the community » Fixed

thanks, commited

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

fix typo