fix(core) : RBAC review fixes - code readonly in edit, TOCTOU doc, canManage reactive, itemsPerPage 999

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-04-16 11:17:13 +02:00
parent d49c317c49
commit 793c58a4a8
5 changed files with 25 additions and 14 deletions

View File

@@ -81,7 +81,7 @@ import type { Role } from '~/shared/types/rbac'
const { t } = useI18n()
const api = useApi()
const { can } = usePermissions()
const canManage = can('core.roles.manage')
const canManage = computed(() => can('core.roles.manage'))
useHead({ title: t('admin.roles.title') })

View File

@@ -56,7 +56,7 @@ const { can } = usePermissions()
useHead({ title: t('admin.users.title') })
const canManage = can('core.users.manage')
const canManage = computed(() => can('core.users.manage'))
const users = ref<UserListItem[]>([])
const loading = ref(false)