Remove clear_lti_session_data as it is no longer needed
* no lti session data anymore included in the function * decided not to delete the pg_id here as it is handled in create_through_lti and implement * the function is only called once without an exercise id so the values are now directly deleted there
This commit is contained in:

committed by
Sebastian Serth

parent
dddebcca67
commit
c2995c96f0
@ -47,13 +47,14 @@ class SessionsController < ApplicationController
|
||||
authorize(@submission, :show?)
|
||||
lti_parameter = current_user.lti_parameters.find_by(exercise: @submission.exercise, study_group_id: current_user.current_study_group_id)
|
||||
@url = consumer_return_url(build_tool_provider(consumer: current_user.consumer, parameters: lti_parameter&.lti_parameters))
|
||||
|
||||
clear_lti_session_data(@submission.exercise_id)
|
||||
end
|
||||
|
||||
def destroy
|
||||
if current_user&.external_user?
|
||||
clear_lti_session_data
|
||||
session.delete(:external_user_id)
|
||||
session.delete(:study_group_id)
|
||||
session.delete(:embed_options)
|
||||
session.delete(:pg_id)
|
||||
|
||||
# In case we have another session as an internal user, we set the study group for this one
|
||||
internal_user = find_or_login_current_user
|
||||
|
Reference in New Issue
Block a user