Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2018-11-12 19:36:53 -0500
committerdonald.g.dunne2018-11-12 19:36:53 -0500
commit884fd1c91c6bdb14e60c7434d6ce2b94a7da4f42 (patch)
treee0364e0ea8c02ed267c4d720f934d61a7e2e192f
parent68e85febae5bef31e1b0ee4f1053399be8f1a81c (diff)
downloadorg.eclipse.osee-884fd1c91c6bdb14e60c7434d6ce2b94a7da4f42.tar.gz
org.eclipse.osee-884fd1c91c6bdb14e60c7434d6ce2b94a7da4f42.tar.xz
org.eclipse.osee-884fd1c91c6bdb14e60c7434d6ce2b94a7da4f42.zip
bug[ats_TW11516]: Disable legacy search or replace if access denied
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/ArtifactSearchPage.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/ArtifactSearchPage.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/ArtifactSearchPage.java
index dcf1a0fbb7..296aea315d 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/ArtifactSearchPage.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/search/ArtifactSearchPage.java
@@ -45,6 +45,7 @@ import org.eclipse.osee.framework.ui.plugin.util.HelpUtil;
import org.eclipse.osee.framework.ui.plugin.util.StringLabelProvider;
import org.eclipse.osee.framework.ui.skynet.ToStringViewerSorter;
import org.eclipse.osee.framework.ui.skynet.access.AccessControlService;
+import org.eclipse.osee.framework.ui.skynet.change.ChangeUiUtil;
import org.eclipse.osee.framework.ui.skynet.internal.Activator;
import org.eclipse.osee.framework.ui.skynet.search.filter.FilterModel;
import org.eclipse.osee.framework.ui.skynet.search.filter.FilterModelList;
@@ -474,6 +475,12 @@ public class ArtifactSearchPage extends DialogPage implements ISearchPage, IRepl
@Override
public boolean performAction() {
+
+ BranchId searchBranch = getSelectedBranch();
+ if (ChangeUiUtil.permissionsDeniedWithDialog(searchBranch)) {
+ return false;
+ }
+
NewSearchUI.activateSearchResultView();
filterviewer.getFilterList().setAllSelected(true);
AbstractArtifactSearchQuery searchQuery =
@@ -485,6 +492,11 @@ public class ArtifactSearchPage extends DialogPage implements ISearchPage, IRepl
@Override
public boolean performReplace() {
+ BranchId searchBranch = getSelectedBranch();
+ if (ChangeUiUtil.permissionsDeniedWithDialog(searchBranch)) {
+ return false;
+ }
+
filterviewer.getFilterList().setAllSelected(true);
AbstractArtifactSearchQuery searchQuery =
new FilterArtifactSearchQuery(filterviewer.getFilterList(), getSelectedBranch());

Back to the top