|
|
|
@ -234,7 +234,7 @@ class EcCourseSupportSetting extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { editableMode, schooldata } = this.state;
|
|
|
|
|
let { editableMode, schooldata, is_manager } = this.state;
|
|
|
|
|
if (!schooldata) schooldata = {}
|
|
|
|
|
const course_targets = this.state.course_targets;
|
|
|
|
|
|
|
|
|
@ -290,7 +290,7 @@ class EcCourseSupportSetting extends Component {
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{ course_targets&&course_targets.length>=0 ? (editableMode ?
|
|
|
|
|
{ course_targets&&course_targets.length>=0 ? (editableMode && is_manager ?
|
|
|
|
|
<EditableCourseSupportSetting
|
|
|
|
|
setEditableMode={this.setEditableMode}
|
|
|
|
|
{...this.props}
|
|
|
|
|