|
|
@@ -30,9 +30,9 @@ const Projects: React.FC = async () => { |
|
|
|
const { t } = await getServerI18n("projects"); |
|
|
|
const abilities = await getUserAbilities() |
|
|
|
|
|
|
|
if (!abilities.includes(MAINTAIN_PROJECT)) { |
|
|
|
if (![MAINTAIN_PROJECT].some(ability => abilities.includes(ability))) { |
|
|
|
notFound(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// Preload necessary dependencies |
|
|
|
fetchAllTasks(); |
|
|
|