Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

User does not have any of the necessary access rights

Cristian Cobra   ( User )

Commented 4 years ago

When you delete a payment via the invoice, the screen freezes. Payment is not excluded.

The error message that appears:

User does not have any of the necessary access rights

// long error message removed, a screenshot is enough

.....

Denis Dulici   ( Admin )

Commented 4 years ago

Hello Cristian,

What is your Akaunting version?

Regards

Cristian Cobra   ( User )

Commented 4 years ago

Hi. Thanks for your attention. My version was 2.0.9. I have now updated to 2.0.10 but the error persists. I had version 2.0.4, upgraded to 2.0.6 then 2.0.8, then 0.9 and now 0.10.

The error occurred in all versions. I already ran chown -R apache_user: apache_user. I tried until chmod -R 777.

But it seems that the problem is not that kind of permission.

Cristian Cobra   ( User )

Commented 4 years ago

User does not have any of the necessary access rights.

/public_html/vendor/laravel/framework/src/Illuminate/FoundationApplication.php#1067Symfony\Component\HttpKernel\Exception\HttpException

#0 .../public_html/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(261): Illuminate\Foundation\Application->abort(403, 'User does not h...')
#1 .../public_html/vendor/santigarcor/laratrust/src/Middleware/LaratrustMiddleware.php(50): Illuminate\Support\Facades\Facade::__callStatic('abort', Array)
#2 .../public_html/vendor/santigarcor/laratrust/src/Middleware/LaratrustPermission.php(29): Laratrust\Middleware\LaratrustMiddleware->unauthorized()

...

Cristian Cobra   ( User )

Commented 4 years ago

Following guidance from the Akaunting page on GIT, I tried to install / reinstall the dependencies:

composer install; npm install; npm run dev

It looks like it was missing from node.js, because now the error has changed to:

TypeError: "document.getElementById(...) is null"
mounted https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
He https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
Jt https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
mount https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
$mount https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
$mount https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
_init https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
xn https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
r https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
r https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
https://financeiro.empresadigital.net.br/public/js/purchases/bills.js?v=2.0.10:1
bills.js:1:1041431

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions