protect getCodeDiffs against users not loggedin.