Alter Media Permissions via Module

Topics: Customizing Orchard
Jan 8, 2015 at 6:23 PM
Edited Jan 8, 2015 at 6:29 PM
Is it possible to alter the permissions for the media library to allow anonymous users to upload content to a specified folder and limit other roles to which folders they can upload to (maybe even type of content they are allowed to upload) in a separate module so as to not mess with the core code? Thank you.

Edit: Basically I would like to break the Manage Media Permission down into several permissions such as Manage Existing Media, Upload New Media, Edit Folder Structure (add/remove folders), Select Media (to be used by the Media Selector Field), etc.