feat: implement ArticleList component with pagination and loading skeleton
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user