Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Dec 26, 2020
1 parent 2e09989 commit d6e9343
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use App\Events\Auth\ApiPermissionsAssigning as Event;

class SetPermissionControllerForCommonApiEndpoints
class SetPermissionControllerForApi
{
/**
* Handle the event.
Expand All @@ -14,6 +14,7 @@ class SetPermissionControllerForCommonApiEndpoints
*/
public function handle(Event $event)
{
// Not a common API endpoint
if (!in_array($event->table, ['contacts', 'documents', 'transactions'])) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Event extends Provider
'App\Listeners\Auth\AddLandingPages',
],
'App\Events\Auth\ApiPermissionsAssigning' => [
'App\Listeners\Auth\SetPermissionControllerForCommonApiEndpoints',
'App\Listeners\Auth\SetPermissionControllerForApi',
],
'App\Events\Document\DocumentCreated' => [
'App\Listeners\Document\CreateDocumentCreatedHistory',
Expand Down

0 comments on commit d6e9343

Please sign in to comment.