mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
core: remove deprecated apis
This commit is contained in:
1 parent
05b27fc1eb
commit
ec0ba8a394
9 files changed
+24
-37
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import { exec } from 'child_process';
|
||||
import { inspect } from 'util';
|
||||
import * as yaml from 'js-yaml';
|
||||
import { omit } from 'lodash';
|
||||
import Schema from 'schemastery';
|
||||
import * as check from '../check';
|
||||
import {
|
||||
@@ -276,9 +277,7 @@ class SystemUserImportHandler extends SystemHandler {
|
||||
}
|
||||
/* eslint-enable no-await-in-loop */
|
||||
|
||||
const Priv = Object.fromEntries(Object.entries(PRIV).filter(
|
||||
(i) => (!i[0].endsWith('SELF') && !['PRIV_DEFAULT', 'PRIV_NEVER', 'PRIV_NONE', 'PRIV_ALL'].includes(i[0])),
|
||||
));
|
||||
const Priv = omit(PRIV, ['PRIV_DEFAULT', 'PRIV_NEVER', 'PRIV_NONE', 'PRIV_ALL']);
|
||||
const allPriv = Math.sum(Object.values(Priv));
|
||||
|
||||
class SystemUserPrivHandler extends SystemHandler {
|
||||
|
||||
Reference in new issue
Block a user