Fixed LocalOrganization.scoping_with_agent , taking only permissions on local organizations