Fixed erroneous media_path reference in set_media_permissions()