Skip to content

Commit

Permalink
remove unneccesarry access
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Dec 15, 2021
1 parent ff32b1d commit d29ec96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@
namespace App\Containers\AppSection\User\UI\API\Requests;

use App\Ship\Parents\Requests\Request;
use App\Containers\AppSection\Authorization\Traits\IsResourceOwnerTrait;

class FindUserByIdRequest extends Request
{
use IsResourceOwnerTrait;

/**
* Define which Roles and/or Permissions has access to this request.
*/
Expand Down Expand Up @@ -42,7 +39,7 @@ public function rules(): array
public function authorize(): bool
{
return $this->check([
'hasAccess|isResourceOwner',
'hasAccess',
]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @apiDescription Find a user by its ID
*
* @apiVersion 1.0.0
* @apiPermission Authenticated ['permissions' => 'delete-users', 'roles' => ''] | Resource Owner
* @apiPermission Authenticated ['permissions' => 'search-users', 'roles' => '']
*
* @apiUse UserSuccessSingleResponse
*/
Expand Down

0 comments on commit d29ec96

Please sign in to comment.