idurar / idurar-erp-crm

Free Open Source ERP CRM Accounting Invoicing Software | Node Js React
https://cloud.idurarapp.com
GNU Affero General Public License v3.0
6.59k stars 2.04k forks source link

Last pull request didn't work for me #979

Open Houssemdaoud opened 9 months ago

Houssemdaoud commented 9 months ago

Hello, i have faced a problem regarding the latest Merge pull request. The program used to run perfectly fine and after the latest pull when i open Localhost i receive the following Error.

Screenshot 2024-02-26 221735
slimskhab commented 9 months ago

Hello Houssem, Make sure to run this command in the backend directory: npm run upgrade If the issue persists, please let me know.

Houssemdaoud commented 9 months ago

Hello Slim, I found out after clearing my browser cookies it open the log in page and i enter the admin@demo email and i enter it keep on loading like u see in the picture and the error pops up

Houssemdaoud commented 9 months ago

thank you slim for the help and i fixed the issue. it turns out it is a database issue that i fixed by switching to a new project and opened a new cluster.

inesmrad commented 8 months ago

I had the same problem after the major version update and couldn't login with idurar credentials. One way of solving this, is by modifying the permission.js file : // if ( roles[currentUserRole]?.includes(permissionName) || req.admin.role === 'owner' || req.admin.role === 'superadmin'|| req.admin.role === 'admin' ) // Just add this line " req.admin.role === 'superadmin' " to the exports.hasPermission function so the if statement looks like what i provided above.