Fixed bug on setting ACL
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@149163 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3dff726ef5
commit
85dcb499e0
|
@ -2870,12 +2870,14 @@ public class GWTWorkspaceServiceImpl extends RemoteServiceServlet implements GWT
|
|||
|
||||
//TO REMOVE ADMINS
|
||||
List<String> admins = mapACL.get(ACLType.ADMINISTRATOR);
|
||||
for (String admin : admins) {
|
||||
boolean removed = listLogins.remove(admin);
|
||||
workspaceLogger.info("Reject username: "+admin +" as "+ACLType.ADMINISTRATOR);
|
||||
if(removed){
|
||||
String fullname = isTestMode()?admin: UserUtil.getUserFullName(admin);
|
||||
errors.add("Unable to grant the privilege "+settingACL+" for "+fullname+", he/she is an: "+ ACLType.ADMINISTRATOR);
|
||||
if(admins !=null){
|
||||
for (String admin : admins) {
|
||||
boolean removed = listLogins.remove(admin);
|
||||
workspaceLogger.info("Reject username: "+admin +" as "+ACLType.ADMINISTRATOR);
|
||||
if(removed){
|
||||
String fullname = isTestMode()?admin: UserUtil.getUserFullName(admin);
|
||||
errors.add("Unable to grant the privilege "+settingACL+" for "+fullname+", he/she is an: "+ ACLType.ADMINISTRATOR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue