[NEXUS-6133] Only gather nexus settings when user is logged in

https://issues.sonatype.org/browse/NEXUS-6133

The fix is to only call into getting the settings if user is logged in (has nexus:settings read rights).