refs #5929 fix(isEditable): can edit if is weekly
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
cf36b10763
commit
f3c55cdee9
|
@ -1409,10 +1409,8 @@ INSERT INTO `cache`.`cache_calc`(`id`, `cache_id`, `cacheName`, `params`, `last_
|
|||
|
||||
INSERT INTO `vn`.`ticketWeekly`(`ticketFk`, `weekDay`)
|
||||
VALUES
|
||||
(1, 0),
|
||||
(2, 1),
|
||||
(3, 2),
|
||||
(4, 4),
|
||||
(5, 6),
|
||||
(15, 6);
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ module.exports = Self => {
|
|||
if (!isEditable && !isRoleAdvanced)
|
||||
throw new ForbiddenError(`This ticket is not editable.`);
|
||||
|
||||
if (isLocked)
|
||||
if (isLocked && !isWeekly)
|
||||
throw new ForbiddenError(`This ticket is locked.`);
|
||||
|
||||
if (isWeekly && !canEditWeeklyTicket)
|
||||
|
|
Loading…
Reference in New Issue