Forum

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

New Discussion

New Modules Forbidden Access

Monjurul Hasan   ( User )

Commented 4 years ago

Hi Team
I have installed Akaunting in my XAMPP server. Everything works fine but a newly created module (Task) has a security issue. After created the module, I have added a menu (showing on the left sidebar). When I clicked it, it should display the module index page but it is not. In the module route file, there is a 'admin' middleware. Most probably that is causing the problem. How do I solve this issue? Any idea is much appreciated.

Denis Dulici   ( Admin )

Commented 4 years ago

Hello Monjurul,

Have you created and assigned permissions based on the controller namespace?

Regards

Sabid Antonio   ( User )

Commented 3 years ago

I have the same problem

@Denis Duliçi can you please add some example.

Or maybe you can add to

App -> Console -> Stubs -> Modules

For reference

Denis Dulici   ( Admin )

Commented 3 years ago

Hello Sabid,

Here you have an example:

https://github.com/akaunting/akaunting/blob/master/modules/OfflinePayments/Listeners/InstallModule.php

And I've just added stubs so feel free to create a new module:

https://github.com/akaunting/akaunting/pull/1392

Regards

Sabid Antonio   ( User )

Commented 3 years ago

Thanks Denis Duliçi

David   ( User )

Commented 2 years ago

https://developer.akaunting.com/documentation/modules/

Updated link with artisan commands.

One issue, when installing the module, a company ID must be given, is there a method to install the module without a company ID? I'm guessing if not the admin middleware is handling the permissions?

Please login or register to leave a response.

Showing 1 to 6 of 6 discussions