You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The drop-menu in the publishing interface lists the investigations that the user has ''read'' access to via a call to [https://github.com/mantidproject/mantid/blob/master/Code/Mantid/MantidQt/CustomDialogs/src/CatalogPublishDialog.cpp#L61 myData]. Consequently, the list is populated with several investigations that the user may not have ''create'' access to.
To improve this, a new method should be added to ICatalogInfoService (named getPublishInvestigations) that:
Calls myData to populate a workspace with the investigations the user has ''read'' access to.
For each investigation, call isAccessAllowed (setting accessType to CREATE (3)) to verify that the user can publish datafiles to that investigation.
If isAccessAllowedResponse is ''not'' true, then remove it from the workspace created by myData.
This ensures that only investigations in the drop-menu are those that the user can publish to.
The text was updated successfully, but these errors were encountered:
Original Reporter: Jay Rainey
This ticket is blocked by :
This ticket is blocks : TRAC8538
The drop-menu in the publishing interface lists the investigations that the user has ''read'' access to via a call to [https://github.com/mantidproject/mantid/blob/master/Code/Mantid/MantidQt/CustomDialogs/src/CatalogPublishDialog.cpp#L61 myData]. Consequently, the list is populated with several investigations that the user may not have ''create'' access to.
To improve this, a new method should be added to
ICatalogInfoService
(namedgetPublishInvestigations
) that:myData
to populate a workspace with the investigations the user has ''read'' access to.isAccessAllowed
(settingaccessType
to CREATE (3)) to verify that the user can publish datafiles to that investigation.isAccessAllowedResponse
is ''not'' true, then remove it from the workspace created bymyData
.This ensures that only investigations in the drop-menu are those that the user can publish to.
The text was updated successfully, but these errors were encountered: