Now also administrator can perform 'Edit Permissions'
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@144657 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ca944e71f7
commit
4936c50a22
|
@ -456,12 +456,14 @@ 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);
|
||||
else
|
||||
new MessageBoxAlert("Permission denied", "You have no authority to manage user permissions. You are not manager of \""+file.getName()+"\"", null);
|
||||
ediPermissions(file);
|
||||
|
||||
// GWT.log("Comparing owner login "+infoContactModel +" with " +AppControllerExplorer.myLogin);
|
||||
// //IF IS OWNER
|
||||
// if(AppControllerExplorer.myLogin.compareToIgnoreCase(infoContactModel.getLogin())==0)
|
||||
// ediPermissions(file);
|
||||
// else
|
||||
// new MessageBoxAlert("Permission denied", "You have no authority to manage user permissions. You are not manager of \""+file.getName()+"\"", null);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue