mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-14 16:54:04 +00:00
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:
committed by
GitHub
parent
05ab78942c
commit
f3e49d3044
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user