Skip to content

Commit

Permalink
fix(core): initial
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbmaulana committed Oct 14, 2024
1 parent 635d18f commit 3af9a5d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 48 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tripteki/laravelphp-acl",
"version": "2.0.2",
"version": "2.0.3",
"description": "Trip Teknologi's Laravel.php ACLs",

"readme": "README.md",
Expand Down
3 changes: 1 addition & 2 deletions src/Helpers/Accesses.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use Tripteki\Helpers\Contracts\AuthModelContract;
use Tripteki\ACL\Contracts\Repository\IACLRepository;
use Tripteki\ACL\Traits\RolePermissionTrait;
use Tripteki\ACL\Http\Resources\AccessResource;
use Illuminate\Support\Facades\Auth;

if (! function_exists("accesses"))
Expand Down Expand Up @@ -38,6 +37,6 @@ function accesses(\Illuminate\Database\Eloquent\Model|null $user = null, $withOw
else $accesses = $repository->permissions()->toArray();
}

return AccessResource::collection($accesses)->resolve();
return $accesses;
};
}
44 changes: 0 additions & 44 deletions src/Http/Resources/AccessResource.php

This file was deleted.

2 changes: 1 addition & 1 deletion stubs/app/Http/Controllers/ACL/ACLController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function index(Request $request)
$data = [];
$statecode = 200;

$data = accesses($request->user());
$data = accesses($request->user(), false);

return iresponse($data, $statecode);
}
Expand Down

0 comments on commit 3af9a5d

Please sign in to comment.