minor fix
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@129160 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
445d2d364a
commit
94dc457aa3
|
@ -136,11 +136,11 @@ public class CKANPublisherServicesImpl extends RemoteServiceServlet implements C
|
||||||
if(instance.isSysAdmin(username, getUserCKanTokenFromSession())){
|
if(instance.isSysAdmin(username, getUserCKanTokenFromSession())){
|
||||||
|
|
||||||
logger.debug("The user " + username + " is a sysadmin. He can publish everywhere");
|
logger.debug("The user " + username + " is a sysadmin. He can publish everywhere");
|
||||||
orgsName = instance.getOrganizationsNames();
|
orgsName = instance.getOrganizationsNames(); // get all organizations' names
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
// We need to retrieve orgs in which the user has the roles ADMIN, EDITOR
|
// We need to retrieve orgs in which the user has the roles ADMIN or EDITOR
|
||||||
List<RolesIntoOrganization> rolesToMatch = new ArrayList<RolesIntoOrganization>();
|
List<RolesIntoOrganization> rolesToMatch = new ArrayList<RolesIntoOrganization>();
|
||||||
rolesToMatch.add(RolesIntoOrganization.EDITOR);
|
rolesToMatch.add(RolesIntoOrganization.EDITOR);
|
||||||
rolesToMatch.add(RolesIntoOrganization.ADMIN);
|
rolesToMatch.add(RolesIntoOrganization.ADMIN);
|
||||||
|
|
Loading…
Reference in New Issue