I am viewing a client using the “client portal.” However, when I view the list of recurring invoices (the list displays fine), if I click on “view,” I am greeted with the error message, “You are not authorized to view or perform this action.”
This error only occurs for recurring invoices. Payments & regular invoices display fine.
Thanks David,
Yes, Invoice Ninja is installed in a sub-directory, if that is relevant.
I have added the ASSETS_URL… to this sub-directory in the .env file, but still the error persists.
Is there anything else I would need to do?
Is there a way I can “view” the details of recurring invoices from the client portal (the list displays fine, but when I click on “view” I am greeted with “You are not authorized to view of perform this action”
I have a similar issue on a self-hosted site: clients can view invoices from the email link and client portal just fine, but the quote link gives the same error message “You are not authorized to view or perform this action.” as described above. From within the client portal invoices can be viewed, but not quotes.
I’ve tried the suggestions made above, but the problem persists.
Can you try disabling a module then saving, and then reenabling (any) module and saving. I think it may be a base value in this section that could be causing the issue.
I have disabled all the modules & saved & then enabled all the modules & saved. Sadly when I go to the client portal, I can view the list of recurring invoices, but when I click on “view,” I am greeted with the error message, “You are not authorized to view or perform this action.”
Is there anything else I might try, or any other way to troubleshoot?
Just tried turning off the client portal, saved setting and then tried viewing a quote and invoice. Both gave the not authorised message, which is what I expected.
Turned it back on, saved and tried again. Now both quote and invoice viewing give the not authorised message, so that appears to have broken the invoice option.
Ran php artisan optimise again just to be sure, but it remains broken.
Andrew
As a follow-up, the client invoice works again.
Just installed the latest update (v5.3.3-C58) but alas, the quote still gives the same error.
I’m very happy I came across this post, I thought I was going crazy.
I am experiencing same exact issues as @madumi
I have also tried the recommendations posted up here, nothing works.
When I first created the recurring invoices, they are by default set to “pending” once the cron job runs to send out = php artisan ninja:send-reminders , then the recurring invoice turned green as ACTIVE.
Once that happened a copy recurring invoice was pushed in Invoices.
Then when logged in as the end user, I am now able to browse to the regular invoice and view it.
But when i browse over to Recurring Invoice i still see
{“message”:“You are not authorized to view or perform this action”}