fix(locale): acl bug of localization management (#2350)

This commit is contained in:
YANG QIA 2023-07-30 13:07:00 +08:00 committed by GitHub
parent 682f0dfc30
commit bab004f951
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 11 deletions

View File

@ -69,7 +69,7 @@ export class LocalizationManagementPlugin extends Plugin {
this.app.acl.registerSnippet({ this.app.acl.registerSnippet({
name: `pm.${this.name}.localization`, name: `pm.${this.name}.localization`,
actions: ['localization:*', 'localizationTexts:*'], actions: ['localization:*', 'localizationTexts:*', 'localizationTranslations:*'],
}); });
this.db.on('afterSave', async (instance: Model) => { this.db.on('afterSave', async (instance: Model) => {

View File

@ -3211,7 +3211,6 @@
"@formily/antd-v5@^1.1.0": "@formily/antd-v5@^1.1.0":
version "1.1.0" version "1.1.0"
resolved "https://registry.npmmirror.com/@formily/antd-v5/-/antd-v5-1.1.0.tgz#e2f20df64c62df348a78b4c44aa17c23a24887d1" resolved "https://registry.npmmirror.com/@formily/antd-v5/-/antd-v5-1.1.0.tgz#e2f20df64c62df348a78b4c44aa17c23a24887d1"
integrity sha512-ryyDRMMaSFN9Ho0DtaPvgagjDtdy6nZlWrR6LoAMGRog85WGFCXAbq9e6IGy1Z0lbcD8VKh36E2C1gJ1YXhVbg==
dependencies: dependencies:
"@ant-design/cssinjs" "^1.3.1" "@ant-design/cssinjs" "^1.3.1"
"@ant-design/icons" "^5.0.0" "@ant-design/icons" "^5.0.0"
@ -3230,7 +3229,6 @@
"@formily/core@2.2.27", "@formily/core@^2.2.0", "@formily/core@^2.2.27": "@formily/core@2.2.27", "@formily/core@^2.2.0", "@formily/core@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/core/-/core-2.2.27.tgz#9ccb51650a713f27997e6823a5a980c9e013f461" resolved "https://registry.npmmirror.com/@formily/core/-/core-2.2.27.tgz#9ccb51650a713f27997e6823a5a980c9e013f461"
integrity sha512-f8e4f/WlimOA7zN1ARmiRKMlIpsIH00XxT7NWAE7EV3DO2B6sq6gSq9GDc5JLwHqhiyJBAIPzUdfmIpRLwPxyQ==
dependencies: dependencies:
"@formily/reactive" "2.2.27" "@formily/reactive" "2.2.27"
"@formily/shared" "2.2.27" "@formily/shared" "2.2.27"
@ -3239,7 +3237,6 @@
"@formily/grid@^2.2.0", "@formily/grid@^2.2.27": "@formily/grid@^2.2.0", "@formily/grid@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/grid/-/grid-2.2.27.tgz#28c948756f7300762e2995130b49cb4539433250" resolved "https://registry.npmmirror.com/@formily/grid/-/grid-2.2.27.tgz#28c948756f7300762e2995130b49cb4539433250"
integrity sha512-6m6+LUxay/O5MPMLPH4+0Pgsvk8IXnMUEaZAk7D2QC7km5No94AcHQFScmqwqRmQ16U3XyD86LvJz3pQUrdfvA==
dependencies: dependencies:
"@formily/reactive" "2.2.27" "@formily/reactive" "2.2.27"
"@juggle/resize-observer" "^3.3.1" "@juggle/resize-observer" "^3.3.1"
@ -3247,7 +3244,6 @@
"@formily/json-schema@2.2.27", "@formily/json-schema@^2.2.0", "@formily/json-schema@^2.2.27": "@formily/json-schema@2.2.27", "@formily/json-schema@^2.2.0", "@formily/json-schema@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/json-schema/-/json-schema-2.2.27.tgz#553ae190bf847944f3c3567516a263bdea6c3dfd" resolved "https://registry.npmmirror.com/@formily/json-schema/-/json-schema-2.2.27.tgz#553ae190bf847944f3c3567516a263bdea6c3dfd"
integrity sha512-YqtpPp9bmXO28iw10ZLT5KCAqipr2SwPrzfskUJ/Oa8O3xZi64+9TMVPylX73cBe49lVaOgFiQPNAljLudeveg==
dependencies: dependencies:
"@formily/core" "2.2.27" "@formily/core" "2.2.27"
"@formily/reactive" "2.2.27" "@formily/reactive" "2.2.27"
@ -3256,12 +3252,10 @@
"@formily/path@2.2.27", "@formily/path@^2.2.27": "@formily/path@2.2.27", "@formily/path@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/path/-/path-2.2.27.tgz#384f207533a2bdc84d700d4b7ef46ca6d664db15" resolved "https://registry.npmmirror.com/@formily/path/-/path-2.2.27.tgz#384f207533a2bdc84d700d4b7ef46ca6d664db15"
integrity sha512-svpYARx1N72Rzg4l9D10SpDljUjCqkFD3ogbnsLNUxO8Rh2oSmn0dw63VDYOw43RX61qHmD3VYAnGxdCv5HJ8w==
"@formily/react@^2.2.0", "@formily/react@^2.2.27": "@formily/react@^2.2.0", "@formily/react@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/react/-/react-2.2.27.tgz#03fbe7be9f9d8c2d66640ef44bb37695e8311ade" resolved "https://registry.npmmirror.com/@formily/react/-/react-2.2.27.tgz#03fbe7be9f9d8c2d66640ef44bb37695e8311ade"
integrity sha512-IVTZ0ILM4TmsydUcj8ZyXKJol1iAlqkWf1TZ+5BeZvmv1ToeluVpkv8/7RoRnr1sNi1K5THwT4AfcQCea0yV2g==
dependencies: dependencies:
"@formily/core" "2.2.27" "@formily/core" "2.2.27"
"@formily/json-schema" "2.2.27" "@formily/json-schema" "2.2.27"
@ -3274,7 +3268,6 @@
"@formily/reactive-react@2.2.27", "@formily/reactive-react@^2.2.0", "@formily/reactive-react@^2.2.27": "@formily/reactive-react@2.2.27", "@formily/reactive-react@^2.2.0", "@formily/reactive-react@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/reactive-react/-/reactive-react-2.2.27.tgz#9eb751317c56cf036f4a77ce54a8fdcec95d9fde" resolved "https://registry.npmmirror.com/@formily/reactive-react/-/reactive-react-2.2.27.tgz#9eb751317c56cf036f4a77ce54a8fdcec95d9fde"
integrity sha512-LJefK/9g8MorhGexMiVF+FVWyMR/Vc4C63Djrj08XeXtTF0NUNUUKVBT1eZqmtdRHJSyDE7SSgUmpxcXP7QmQQ==
dependencies: dependencies:
"@formily/reactive" "2.2.27" "@formily/reactive" "2.2.27"
hoist-non-react-statics "^3.3.2" hoist-non-react-statics "^3.3.2"
@ -3282,12 +3275,10 @@
"@formily/reactive@2.2.27", "@formily/reactive@^2.2.0", "@formily/reactive@^2.2.27": "@formily/reactive@2.2.27", "@formily/reactive@^2.2.0", "@formily/reactive@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/reactive/-/reactive-2.2.27.tgz#b67e6a0573910f0e57729b235a7bd1fe9b3e20ad" resolved "https://registry.npmmirror.com/@formily/reactive/-/reactive-2.2.27.tgz#b67e6a0573910f0e57729b235a7bd1fe9b3e20ad"
integrity sha512-ksdA4uIw3WMo0FmHcGsyqZgPwhujVgtXqxiWPSV+Tc2eEoJrInZhr15Q0IeTQ6glMh8izNsb19YK+PphBHwXGg==
"@formily/shared@2.2.27", "@formily/shared@^2.2.0", "@formily/shared@^2.2.27": "@formily/shared@2.2.27", "@formily/shared@^2.2.0", "@formily/shared@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/shared/-/shared-2.2.27.tgz#cc7dd95a4abc15d6d4d541f863052afedb1c72ca" resolved "https://registry.npmmirror.com/@formily/shared/-/shared-2.2.27.tgz#cc7dd95a4abc15d6d4d541f863052afedb1c72ca"
integrity sha512-3gMvcx0318VLkIgwdqYhHVE9uU6K5D0MKr75esDRL908jZ1wWy+/Qt/UNmBfdDdCtWBP6F/E/VGSBUBOue7Bqw==
dependencies: dependencies:
"@formily/path" "2.2.27" "@formily/path" "2.2.27"
camel-case "^4.1.1" camel-case "^4.1.1"
@ -3300,7 +3291,6 @@
"@formily/validator@2.2.27", "@formily/validator@^2.2.27": "@formily/validator@2.2.27", "@formily/validator@^2.2.27":
version "2.2.27" version "2.2.27"
resolved "https://registry.npmmirror.com/@formily/validator/-/validator-2.2.27.tgz#e970108b5f39ad2a7a265eb782d3973e36a6cd3a" resolved "https://registry.npmmirror.com/@formily/validator/-/validator-2.2.27.tgz#e970108b5f39ad2a7a265eb782d3973e36a6cd3a"
integrity sha512-RSkNQY/IGtVKTYxqz6/64UO5RPAWBLOtKb2oRTLlWwEAaoMFkkZkdKERzv1z05oMCp53hGt6f9psgfLXaNUmMQ==
dependencies: dependencies:
"@formily/shared" "2.2.27" "@formily/shared" "2.2.27"