Skip to content
Snippets Groups Projects
Commit 1136e454 authored by Tom Käsler's avatar Tom Käsler
Browse files

set pp attributes when exporting to public pool

parent ffbb7473
No related merge requests found
......@@ -414,6 +414,7 @@ public class SessionService implements ISessionService, ApplicationEventPublishe
@PreAuthorize("isAuthenticated() and hasPermission(#sessionkey, 'session', 'owner')")
public SessionInfo copySessionToPublicPool(String sessionkey, de.thm.arsnova.entities.transport.ImportExportSession.PublicPool pp) {
ImportExportSession temp = databaseDao.exportSession(sessionkey, false, false);
temp.getSession().setPublicPool(pp);
temp.getSession().setSessionType("public_pool");
final User user = userService.getCurrentUser();
return databaseDao.importSession(user, temp);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment