@hestia-earth/api 0.25.77 → 0.25.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -258,7 +258,7 @@ const isAuthorized = ({ authorizedUsers }, user) => (authorizedUsers || []).map(
|
|
|
258
258
|
exports.isAuthorized = isAuthorized;
|
|
259
259
|
const isAssigned = ({ assignedUsers }, user) => (assignedUsers || []).map(asString).includes(asString(user));
|
|
260
260
|
exports.isAssigned = isAssigned;
|
|
261
|
-
const isLocked = ({ status, pipelineStatus }) =>
|
|
261
|
+
const isLocked = ({ status, pipelineStatus }) => ![FileStatus.validateDataDone, ...Object.values(FilePipelineError)].includes(status) &&
|
|
262
262
|
(status !== FileStatus.indexJsonDone ||
|
|
263
263
|
![FilePipelineStatus.calculationEngineDone, FilePipelineError.calculationEngineError].includes(pipelineStatus));
|
|
264
264
|
exports.isLocked = isLocked;
|