Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2018-11-12 19:19:09 -0500
committerdonald.g.dunne2018-11-12 19:19:09 -0500
commit68e85febae5bef31e1b0ee4f1053399be8f1a81c (patch)
treeaeb37de5aff2eb49f3e839f070a0d069a5fa4b3a
parentb41584fff7a04033c44949068d2a2ce1f5c3e113 (diff)
downloadorg.eclipse.osee-68e85febae5bef31e1b0ee4f1053399be8f1a81c.tar.gz
org.eclipse.osee-68e85febae5bef31e1b0ee4f1053399be8f1a81c.tar.xz
org.eclipse.osee-68e85febae5bef31e1b0ee4f1053399be8f1a81c.zip
bug[ats_TW11516]: Disable show of branch transactions if access denied
-rw-r--r--plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xBranch/XBranchContentProvider.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xBranch/XBranchContentProvider.java b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xBranch/XBranchContentProvider.java
index 4168c4bb29..743579c143 100644
--- a/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xBranch/XBranchContentProvider.java
+++ b/plugins/org.eclipse.osee.framework.ui.skynet/src/org/eclipse/osee/framework/ui/skynet/widgets/xBranch/XBranchContentProvider.java
@@ -32,6 +32,7 @@ import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.logging.OseeLog;
import org.eclipse.osee.framework.skynet.core.artifact.BranchManager;
import org.eclipse.osee.framework.skynet.core.transaction.TransactionManager;
+import org.eclipse.osee.framework.ui.skynet.change.ChangeUiUtil;
/**
* @author Jeff C. Phillips
@@ -63,7 +64,9 @@ public class XBranchContentProvider implements ITreeContentProvider {
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof BranchId) {
- return getBranchChildren((BranchId) parentElement);
+ if (!ChangeUiUtil.permissionsDeniedWithDialog((BranchId) parentElement)) {
+ return getBranchChildren((BranchId) parentElement);
+ }
} else if (parentElement instanceof Collection<?>) {
return ((Collection<?>) parentElement).toArray();
} else if (parentElement instanceof Object[]) {

Back to the top