このコミットが含まれているのは:
2026-06-07 00:05:18 +09:00
コミット 364d154b6a
8個のファイルの変更482行の追加283行の削除
+1
ファイルの表示
@@ -2,6 +2,7 @@ import type { User, UserRole } from '@/types'
const CONTENT_EDITOR_ROLES: readonly UserRole[] = ['admin', 'member']
export const canEditContent = (
user: Pick<User, 'role'> | null | undefined,
): boolean => user != null && CONTENT_EDITOR_ROLES.includes (user.role)