diff --git a/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp b/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp index 2f135fe7d4c5..5c582646d600 100644 --- a/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp +++ b/Code/Mantid/Framework/ICat/src/ICat4/ICat4Catalog.cpp @@ -801,9 +801,9 @@ namespace Mantid std::string sessionID = m_session->getSessionId(); request.sessionId = &sessionID; - ns1__accessType_ a; - a.__item = ns1__accessType__UPDATE; - request.accessType = &a.__item; + ns1__accessType_ acessType; + acessType.__item = ns1__accessType__READ; + request.accessType = &acessType.__item; // Remove each investigation returned from `myData` // were the user does not have create/write access.