isAdminOrTeacher

dev_forum
hjm 6 years ago
parent e196f5b066
commit 3ac4b9d0a4

@ -28,6 +28,7 @@ const pageSize = 20;
function buildColumns(that) {
const isAdmin = that.props.isAdmin()
const isAdminOrCreator = that.props.isAdminOrCreator();
const isAdminOrTeacher = that.props.isAdminOrTeacher()
const { course_groups } = that.state
const columns = [{
title: '',
@ -121,7 +122,7 @@ function buildColumns(that) {
),
})
}
if (isAdminOrCreator) {
if (isAdminOrTeacher) {
columns.push({
title: '操作',
key: 'action',

Loading…
Cancel
Save