formatting
This commit is contained in:
		| @@ -4,7 +4,7 @@ namespace App\Listeners\Auth; | |||||||
| 
 | 
 | ||||||
| use App\Events\Auth\ApiPermissionsAssigning as Event; | use App\Events\Auth\ApiPermissionsAssigning as Event; | ||||||
| 
 | 
 | ||||||
| class SetPermissionControllerForCommonApiEndpoints | class SetPermissionControllerForApi | ||||||
| { | { | ||||||
|     /** |     /** | ||||||
|      * Handle the event. |      * Handle the event. | ||||||
| @@ -14,6 +14,7 @@ class SetPermissionControllerForCommonApiEndpoints | |||||||
|      */ |      */ | ||||||
|     public function handle(Event $event) |     public function handle(Event $event) | ||||||
|     { |     { | ||||||
|  |         // Not a common API endpoint
 | ||||||
|         if (!in_array($event->table, ['contacts', 'documents', 'transactions'])) { |         if (!in_array($event->table, ['contacts', 'documents', 'transactions'])) { | ||||||
|             return; |             return; | ||||||
|         } |         } | ||||||
| @@ -37,7 +37,7 @@ class Event extends Provider | |||||||
|             'App\Listeners\Auth\AddLandingPages', |             'App\Listeners\Auth\AddLandingPages', | ||||||
|         ], |         ], | ||||||
|         'App\Events\Auth\ApiPermissionsAssigning' => [ |         'App\Events\Auth\ApiPermissionsAssigning' => [ | ||||||
|             'App\Listeners\Auth\SetPermissionControllerForCommonApiEndpoints', |             'App\Listeners\Auth\SetPermissionControllerForApi', | ||||||
|         ], |         ], | ||||||
|         'App\Events\Document\DocumentCreated' => [ |         'App\Events\Document\DocumentCreated' => [ | ||||||
|             'App\Listeners\Document\CreateDocumentCreatedHistory', |             'App\Listeners\Document\CreateDocumentCreatedHistory', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user