Skip to content

Commit

Permalink
Revert "Give admin of automated tests permission to use mass import"
Browse files Browse the repository at this point in the history
This reverts commit 621af0b.
  • Loading branch information
solth committed Aug 29, 2024
1 parent 621af0b commit f05e1ea
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Kitodo/src/test/java/org/kitodo/MockDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,6 @@ public static void insertAuthorities() throws DAOException {
// Assign import configurations to clients
authorities.add(new Authority("assignImportConfigurationToClient" + GLOBAL_ASSIGNABLE));

// Use mass import
authorities.add(new Authority("useMassImport" + CLIENT_ASSIGNABLE));

for (Authority authority : authorities) {
ServiceManager.getAuthorityService().saveToDatabase(authority);
}
Expand Down Expand Up @@ -1543,9 +1540,6 @@ private static void insertRoles() throws DAOException {
firstRole.getAuthorities().add(allAuthorities.get(i));
}

firstRole.setAuthorities(Collections.singletonList(ServiceManager.getAuthorityService()
.getByTitle("useMassImport" + CLIENT_ASSIGNABLE)));

ServiceManager.getRoleService().saveToDatabase(firstRole);

Role secondRole = new Role();
Expand Down

0 comments on commit f05e1ea

Please sign in to comment.