From c59022bc62b2017ed3432a7655cad48889e01d36 Mon Sep 17 00:00:00 2001 From: George Daneke Date: Wed, 26 Jun 2024 00:12:28 +0300 Subject: [PATCH] removed roles from jetstream and added API page --- app/Providers/JetstreamServiceProvider.php | 6 +++--- config/jetstream.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Providers/JetstreamServiceProvider.php b/app/Providers/JetstreamServiceProvider.php index ca8ce8e..126dc57 100644 --- a/app/Providers/JetstreamServiceProvider.php +++ b/app/Providers/JetstreamServiceProvider.php @@ -43,9 +43,9 @@ public function boot(): void */ protected function configurePermissions(): void { - Jetstream::defaultApiTokenPermissions(['read']); + Jetstream::defaultApiTokenPermissions(['*']); - Jetstream::role('admin', 'Administrator', [ + /*Jetstream::role('admin', 'Administrator', [ 'create', 'read', 'update', @@ -56,6 +56,6 @@ protected function configurePermissions(): void 'read', 'create', 'update', - ])->description('Editor users have the ability to read, create, and update.'); + ])->description('Editor users have the ability to read, create, and update.');*/ } } diff --git a/config/jetstream.php b/config/jetstream.php index cfe14d9..56dc1c9 100644 --- a/config/jetstream.php +++ b/config/jetstream.php @@ -58,9 +58,9 @@ */ 'features' => [ - // Features::termsAndPrivacyPolicy(), + Features::termsAndPrivacyPolicy(), // Features::profilePhotos(), - // Features::api(), + Features::api(), Features::teams(['invitations' => true]), Features::accountDeletion(), ],