mirror of
https://github.com/nocobase/nocobase.git
synced 2026-09-24 16:02:20 +08:00
* feat: support merge role function * feat: test * fix: snippets merge bug * feat: support with-acl-meta allowedActions * feat: support mobileRoutes role union * feat: support union role of data source manager plugin * fix: merge action fields * fix: merge action * chore: code clean * fix: perform a deep clone of the object in the toJSON method * refactor: mergeRole code migration * fix: desktopRoutes test * fix: build * refactor: optimze acl role code and add test * fix: bug * fix: skip test * fix: acl role action whitelist invalid * fix: actions bug * chore: merge develop * chore: desktop routes code * fix: test * feat: support set system role mode * fix: test * fix: snippets bug * chore: update text * fix: test * fix: test * fix: text * fix: text * refactor: optimze code * refactor: optimze code * refactor: optimze code * refactor: optimze code --------- Co-authored-by: 霍世杰 <huoshijie@huoshijiedeMacBook-Pro.local> Co-authored-by: chenos <chenlinxh@gmail.com>
18 lines
511 B
TypeScript
18 lines
511 B
TypeScript
/**
|
|
* This file is part of the NocoBase (R) project.
|
|
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
* Authors: NocoBase Team.
|
|
*
|
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
*/
|
|
|
|
export const SystemRoleMode = {
|
|
default: 'default',
|
|
allowUseUnion: 'allow-use-union',
|
|
onlyUseUnion: 'only-use-union',
|
|
validate(value: string) {
|
|
return Object.values(this).includes(value);
|
|
},
|
|
} as const;
|