|
@@ -68,7 +68,8 @@ export class HomeSemeUI extends BaseUI {
|
|
|
let isHomeWorkLock =
|
|
|
!this.homeWorkType &&
|
|
|
!isHomeWork &&
|
|
|
- ((Data.home.role == HOME_ROLE_TYPE.student && (this.isActive || this.isTry)) ||
|
|
|
+ ((Data.home.role == HOME_ROLE_TYPE.student &&
|
|
|
+ (this.isActive || (Data.home.curSemeID == this.curSeme && this.isTry))) ||
|
|
|
Data.home.role == HOME_ROLE_TYPE.teacher)
|
|
|
// let isLastGameIDLock = index + 1 > lastGameID && lastGameID != -1 && Data.home.role == HOME_ROLE_TYPE.student
|
|
|
let isVisitorLock = Data.home.role == HOME_ROLE_TYPE.visitor && index != 0
|