feat: implement ArticleList component with pagination and loading skeleton

This commit is contained in:
2026-04-11 21:37:39 -03:00
parent 56a5d77c6c
commit 79e6fae0f9
7 changed files with 140 additions and 88 deletions

View File

@@ -14,10 +14,6 @@ export const getPublicUrl = async (
if (!storageProvider) {
storageProvider = storage;
}
const session = await getSessionData();
if (!session || !session?.user || session?.user.role !== 'admin') {
throw new Error('Unauthorized: Only admin users can delete articles.');
}
return await storageProvider.get(key);
};