idurar-erp-crm icon indicating copy to clipboard operation
idurar-erp-crm copied to clipboard

Last pull request didn't work for me

Open Houssemdaoud opened this issue 11 months ago • 4 comments

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

Houssemdaoud avatar Feb 26 '24 21:02 Houssemdaoud

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

slimskhab avatar Feb 27 '24 07:02 slimskhab

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 avatar Feb 27 '24 08:02 Houssemdaoud

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.

Houssemdaoud avatar Feb 27 '24 09:02 Houssemdaoud

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.

inesmrad avatar Mar 28 '24 09:03 inesmrad