feat(api-keys): show creator column and filter to org owners

Switch the gate from `currentUser.is_admin` to `access.canSeeOrgAdmin`
so Org owners get the same all-keys view (Creator column, creator
filter, `user_id: '*'` default) that platform admins have. Mirrors
the BE's "platform admin OR current-Org owner" gate on listing every
key in scope.

The user picker now fetches `/user-directory` instead of the
admin-only `/users` endpoint, which would 403 Org owners. Rename the
filter placeholder from the misnamed `models.table.filterByName` to
`common.filter.byCreator`.
This commit is contained in:
gitlawr
2026-06-03 15:25:38 +08:00
committed by jialin
parent 72e794c281
commit 57fec89f2d
8 changed files with 32 additions and 17 deletions
+1
View File
@@ -233,6 +233,7 @@ export default {
'common.text.tips': '提示',
'settings.system': '系统设置',
'common.filter.byId': '按 ID 查询',
'common.filter.byCreator': '按创建者筛选',
'common.appearance': '外观',
'common.appearance.dark': '深色',
'common.appearance.light': '浅色',