@@ -50,12 +50,14 @@ def is_admin_staff?(my_role)
5050
5151 expose :learning_outcomes , using : LearningOutcomeEntity , as : :ilos , unless : :summary_only
5252 expose :tutorial_streams , using : TutorialStreamEntity , unless : :summary_only
53+
54+ # Expose staff before tutorials, so that their details are available
55+ expose :staff , using : UnitRoleEntity , unless : :summary_only
5356 expose :tutorials , using : TutorialEntity , unless : :summary_only
5457 # expose :tutorial_enrolments, using: TutorialEnrolmentEntity, unless: :summary_only, if: lambda { |unit, options| is_staff?(options[:my_role]) }
5558
5659 expose :task_definitions , using : TaskDefinitionEntity , unless : :summary_only
5760 expose :task_outcome_alignments , using : TaskOutcomeAlignmentEntity , unless : :summary_only
58- expose :staff , using : UnitRoleEntity , unless : :summary_only
5961 expose :group_sets , using : GroupSetEntity , unless : :summary_only
6062 expose :groups , using : GroupEntity , unless : :summary_only
6163 # expose :group_memberships, using: GroupMembershipEntity, unless: :summary_only do |unit, options|
0 commit comments