fix #8519 adding ROLE_USER_MANAGER to FirstDataInserter
authorAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Thu, 5 Sep 2019 14:01:34 +0000 (16:01 +0200)
committerAndreas Kohlbecker <a.kohlbecker@bgbm.org>
Thu, 5 Sep 2019 14:01:34 +0000 (16:01 +0200)
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/FirstDataInserter.java

index 72705c9a76f023c1d1bcc663e15e22b660d29721..aff1df9c3b46fb0edec6325be92ba21adfcaf2f9 100644 (file)
@@ -18,7 +18,6 @@ import java.util.UUID;
 import org.apache.log4j.Logger;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.context.event.ContextRefreshedEvent;
-import org.springframework.context.event.ContextStartedEvent;
 import org.springframework.security.authentication.AuthenticationProvider;
 import org.springframework.security.core.GrantedAuthority;
 import org.springframework.transaction.PlatformTransactionManager;
@@ -183,6 +182,7 @@ public class FirstDataInserter extends AbstractDataInserter {
             checkAdminUser();
             checkDefaultGroups();
             assureRole_REMOTING_forEditors();
+            assureRole(Role.ROLE_USER_MANAGER);
             checkMetadata();
             firstDataInserted = true;