Skip to content

Resource Action not working, returns 403 error #4988

@Elshaden

Description

@Elshaden
  • Laravel Version: 9.37.#
  • Nova Version: 4.17.1
  • PHP Version: 8.1.#

Description:

my resource action

 public function actions(NovaRequest $request)
    {

            return [
            
                (new MyAction)->confirmText('Approval Required')
                    ->confirmButtonText('Approve')
                   ->canSee(function ($request) {
                        return  is_null($this->resource->approval);
                })
            ];
   }

The problem is when I click the Modal Opens but after submitting with approval_ref, I get 403 not authorized.

My Policy

 public function runAction(User $user, Order $order)
    {
        return true;
    }


I am stuck without any solution to this problem which I assume is a BUG.

Detailed steps to reproduce the issue on a fresh Nova installation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions