Allow teachers to access internal users and manage them in their study groups
This commit is contained in:

committed by
Sebastian Serth

parent
e3018c1847
commit
0e7c38657f
@ -11,13 +11,10 @@ class StudyGroupsController < ApplicationController
|
||||
authorize!
|
||||
end
|
||||
|
||||
def show
|
||||
@search = @study_group.external_users.ransack(params[:q])
|
||||
end
|
||||
def show; end
|
||||
|
||||
def edit
|
||||
@search = @study_group.external_users.ransack(params[:q])
|
||||
@members = StudyGroupMembership.where(user: @search.result, study_group: @study_group)
|
||||
@members = StudyGroupMembership.where(user: @study_group.users, study_group: @study_group).includes(:user)
|
||||
end
|
||||
|
||||
def update
|
||||
|
Reference in New Issue
Block a user