Revision e367ce34
Added by Andreas Kohlbecker almost 4 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/application/FirstDataInserter.java | ||
---|---|---|
18 | 18 |
import org.apache.log4j.Logger; |
19 | 19 |
import org.springframework.beans.factory.annotation.Autowired; |
20 | 20 |
import org.springframework.context.event.ContextRefreshedEvent; |
21 |
import org.springframework.context.event.ContextStartedEvent; |
|
21 | 22 |
import org.springframework.security.authentication.AuthenticationProvider; |
22 | 23 |
import org.springframework.security.core.GrantedAuthority; |
23 | 24 |
import org.springframework.transaction.PlatformTransactionManager; |
... | ... | |
117 | 118 |
new CdmAuthority(PermissionClass.TEAMORPERSONBASE, UPDATE_DELETE).toString() |
118 | 119 |
}; |
119 | 120 |
|
121 |
public static final String[] EDIT_ALL_TAXA_GROUP_AUTHORITIES = new String[]{ |
|
122 |
new CdmAuthority(PermissionClass.TAXONNODE, CREATE_READ_UPDATE_DELETE).toString() |
|
123 |
}; |
|
124 |
|
|
120 | 125 |
public static final String[] ADMIN_GROUP_AUTHORITIES = new String[]{ |
121 | 126 |
Role.ROLE_ADMIN.toString() |
122 | 127 |
}; |
... | ... | |
231 | 236 |
checkGroup(Group.GROUP_PROJECT_MANAGER_UUID, Group.GROUP_PROJECT_MANAGER_NAME, PROJECT_MANAGER_GROUP_AUTHORITIES); |
232 | 237 |
checkGroup(Group.GROUP_ADMIN_UUID, Group.GROUP_ADMIN_NAME, ADMIN_GROUP_AUTHORITIES); |
233 | 238 |
checkGroup(Group.GROUP_EDITOR_REFERENCE_UUID, Group.GROUP_EDITOR_REFERENCE, EDITOR_REFERENCE_GROUP_AUTHORITIES); |
239 |
checkGroup(Group.GROUP_ALLOW_ALL_TAXA_UUID, Group.GROUP_ALLOW_ALL_TAXA_NAME, EDIT_ALL_TAXA_GROUP_AUTHORITIES); |
|
234 | 240 |
progressMonitor.worked(1); |
235 | 241 |
} |
236 | 242 |
|
Also available in: Unified diff
fix #9020 adding default role Allow_for_all_taxa