Currently, when sharing a link to course or global resources between logged in users, the logged in user can access the resource regardless of accessibility rules.