Fixing permissions for the media library