mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: ignore check share stat of current domain
This commit is contained in:
1 parent
96a4d1fc8c
commit
105608558f
2 files changed
+3
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.28.7",
|
||||
"version": "2.28.8",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -247,7 +247,8 @@ export class ProblemModel {
|
||||
const l = {};
|
||||
const ddocs = await Promise.all(Object.keys(parsed).map((i) => domain.get(i)));
|
||||
const f = ddocs.filter((i) => !(
|
||||
i?.share === '*'
|
||||
i._id === domainId
|
||||
|| i?.share === '*'
|
||||
|| (`,${(i?.share || '').replace(/,/g, ',').split(',').map((q) => q.trim()).join(',')},`).includes(`,${domainId},`)
|
||||
));
|
||||
if (f.length) {
|
||||
|
||||
Reference in new issue
Block a user