Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions apps/common/auth/constants/permission_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2146,12 +2146,16 @@ class PermissionConstants(Enum):

PORTAL_READ = (
Permission(group=Group.PORTAL, sub_group=Group.PORTAL, operate=Operate.READ, bit_index=0),
PermissionMeta(role_list=[RoleConstants.ADMIN], scope=[PermissionScopeConstants.SYSTEM]),
PermissionMeta(
role_list=[RoleConstants.ADMIN], category=Category.CHAT_CLIENT, scope=[PermissionScopeConstants.SYSTEM]
),
)

PORTAL_EDIT = (
Permission(group=Group.PORTAL, sub_group=Group.PORTAL, operate=Operate.EDIT, bit_index=0),
PermissionMeta(role_list=[RoleConstants.ADMIN], scope=[PermissionScopeConstants.SYSTEM]),
Permission(group=Group.PORTAL, sub_group=Group.PORTAL, operate=Operate.EDIT, bit_index=1),
PermissionMeta(
role_list=[RoleConstants.ADMIN], category=Category.CHAT_CLIENT, scope=[PermissionScopeConstants.SYSTEM]
),
)

# ==================== 共享工具 ====================
Expand Down
3 changes: 3 additions & 0 deletions apps/locales/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9522,6 +9522,9 @@ msgstr ""
msgid "Portal"
msgstr ""

msgid "Portal Setting"
msgstr "Portal Setting"

msgid "Portal configuration does not exist"
msgstr ""

Expand Down
3 changes: 3 additions & 0 deletions apps/locales/zh_CN/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9662,6 +9662,9 @@ msgstr "保存门户配置"
msgid "Portal"
msgstr "门户"

msgid "Portal Setting"
msgstr "门户设置"

msgid "Portal configuration does not exist"
msgstr "门户配置不存在"

Expand Down
3 changes: 3 additions & 0 deletions apps/locales/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -9662,6 +9662,9 @@ msgstr "儲存門戶配置"
msgid "Portal"
msgstr "門戶"

msgid "Portal Setting"
msgstr "門戶設置"

msgid "Portal configuration does not exist"
msgstr "門戶配置不存在"

Expand Down
Loading