Browse Source

auth

master
hzzz 7 years ago
parent
commit
cc1cccf1a2
  1. 11
      designer-base/src/com/fr/design/env/RemoteWorkspace.java

11
designer-base/src/com/fr/design/env/RemoteWorkspace.java vendored

@ -1,9 +1,11 @@
package com.fr.design.env; package com.fr.design.env;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.report.util.RemoteDesignAuthenticateUtils;
import com.fr.workspace.Workspace; import com.fr.workspace.Workspace;
import com.fr.workspace.connect.WorkspaceClient; import com.fr.workspace.connect.WorkspaceClient;
import com.fr.workspace.connect.WorkspaceConnection; import com.fr.workspace.connect.WorkspaceConnection;
import com.fr.workspace.engine.WorkspaceServerContext;
/** /**
* Created by juhaoyu on 2018/6/14. * Created by juhaoyu on 2018/6/14.
@ -54,6 +56,15 @@ public class RemoteWorkspace implements Workspace {
return false; return false;
} }
@Override
public boolean isRoot() {
try {
return RemoteDesignAuthenticateUtils.isRoot(WorkspaceServerContext.currentUsername());
} catch (Exception e) {
return false;
}
}
@Override @Override
public <T> T get(Class<T> type) { public <T> T get(Class<T> type) {

Loading…
Cancel
Save