Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter publish investigations on GUI #10066

Closed
1 task done
mantid-builder opened this issue Mar 26, 2014 · 1 comment
Closed
1 task done

Filter publish investigations on GUI #10066

mantid-builder opened this issue Mar 26, 2014 · 1 comment
Milestone

Comments

@mantid-builder
Copy link
Collaborator

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 (named getPublishInvestigations) that:

  1. Calls myData to populate a workspace with the investigations the user has ''read'' access to.
  2. For each investigation, call isAccessAllowed (setting accessType to CREATE (3)) to verify that the user can publish datafiles to that investigation.
  3. 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.

@mantid-builder
Copy link
Collaborator Author

This issue was originally trac ticket 9223

@mantid-builder mantid-builder added this to the Release 3.2 milestone Jun 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant