fixed bug on edit permissions
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@111523 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
2fd0cfe27d
commit
b215391007
|
@ -364,6 +364,7 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
|||
@Override
|
||||
public void onSuccess(InfoContactModel infoContactModel) {
|
||||
|
||||
GWT.log("Comparing owner login "+infoContactModel +" with " +AppControllerExplorer.myLogin);
|
||||
//IF IS OWNER
|
||||
if(AppControllerExplorer.myLogin.compareToIgnoreCase(infoContactModel.getLogin())==0)
|
||||
ediPermissions(file);
|
||||
|
@ -2183,7 +2184,6 @@ public class AppControllerExplorer implements EventHandler, TreeAppControllerInt
|
|||
|
||||
final MultiDragContactsEditPermissions multiDragContact = new MultiDragContactsEditPermissions(LOAD_CONTACTS_AS.SHARED_USER, file.getIdentifier(), true);
|
||||
|
||||
new MultiDragContactsEditPermissions(LOAD_CONTACTS_AS.SHARED_USER, file.getIdentifier(), true);
|
||||
final DialogMultiDragContact multidrag = multiDragContact.getDialog();
|
||||
|
||||
multidrag.setTxtHelp("Sets the permission for the user(s) dragged in the right list");
|
||||
|
|
|
@ -2280,7 +2280,7 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
|
||||
//TEST MODE
|
||||
if(!isWithinPortal()){
|
||||
workspaceLogger.info("is without portal returning Test User");
|
||||
workspaceLogger.info("getOwnerByItemId is in test mode returning owner francesco.mangiacrapa");
|
||||
return new InfoContactModel("francesco.mangiacrapa", "francesco.mangiacrapa", "Francesco Mangiacrapa", false);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue