mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-09-01 21:00:58 +00:00
feat: add secure module marketplace runtime (#745)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\AiConversation;
|
||||
use App\Models\User;
|
||||
use App\Policies\AiConversationPolicy;
|
||||
use App\Policies\CompanyPolicy;
|
||||
use App\Policies\CreditNotePolicy;
|
||||
@@ -68,6 +69,7 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
Gate::policy(Role::class, RolePolicy::class);
|
||||
Gate::policy(AiConversation::class, AiConversationPolicy::class);
|
||||
Gate::define('manage module settings', fn (User $user): bool => $user->isSuperAdmin() || $user->isOwner());
|
||||
|
||||
View::addNamespace('pdf_templates', storage_path('app/templates/pdf'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user