Temperately hide modules tab while Module Management is developed (#443)

* fix(navigation): temperately hide modules tab while Module Management is developed

* chore run pint
This commit is contained in:
Rihards Simanovičs
2025-09-02 00:30:53 +01:00
committed by GitHub
parent 05ab78942c
commit f3e49d3044

View File

@@ -386,16 +386,21 @@ return [
'ability' => 'view-expense',
'model' => Expense::class,
],
[
'title' => 'navigation.modules',
'group' => 3,
'link' => '/admin/modules',
'icon' => 'PuzzlePieceIcon',
'name' => 'Modules',
'owner_only' => true,
'ability' => '',
'model' => '',
],
// TODO: remove env check once the module management os implemented.
...(
env('APP_ENV', 'production') == 'development' ? [
[
'title' => 'navigation.modules',
'group' => 3,
'link' => '/admin/modules',
'icon' => 'PuzzlePieceIcon',
'name' => 'Modules',
'owner_only' => true,
'ability' => '',
'model' => '',
],
] : []
),
[
'title' => 'navigation.users',
'group' => 3,