We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "name": "@medusajs/medusa", "version": "2.5.1", "description": "Building blocks for digital commerce", "main": "dist/index.js", "exports": { "./package.json": "./package.json", ".": "./dist/index.js", "./types": "./dist/types/index.js", "./utils": "./dist/utils/index.js", "./api/*": "./dist/api/*.js", "./subscribers/*": "./dist/subscribers/*.js", "./jobs/*": "./dist/jobs/*.js", "./core-flows": "./dist/core-flows/index.js", "./loaders/*": "./dist/loaders/*.js", "./commands/*": "./dist/commands/*.js", "./*": "./dist/modules/*.js" }, "repository": { "type": "git", "url": "https://github.com/medusajs/medusa", "directory": "packages/medusa" }, "publishConfig": { "access": "public" }, "files": [ "dist", "oas", "!dist/**/__tests__", "!dist/**/__mocks__", "!dist/**/__fixtures__" ], "engines": { "node": ">=20" }, "author": "Sebastian Rindom", "license": "MIT", "scripts": { "watch": "tsc --build --watch", "build": "rimraf dist && tsc --build", "serve": "node dist/app.js", "test": "jest --runInBand --bail --forceExit --testPathIgnorePatterns='/integration-tests/' -- src/**/__tests__/**/*.ts", "test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts" }, "devDependencies": { "@medusajs/framework": "^2.5.1", "@opentelemetry/api": "^1.9.0", "@opentelemetry/instrumentation": "^0.53.0", "@opentelemetry/instrumentation-pg": "^0.44.0", "@opentelemetry/resources": "^1.26.0", "@opentelemetry/sdk-node": "^0.53.0", "@opentelemetry/sdk-trace-node": "^1.26.0", "@swc/core": "^1.7.28", "@swc/helpers": "^0.5.0", "@swc/jest": "^0.2.36", "@types/express": "^4.17.17", "@types/jsonwebtoken": "^8.5.9", "@types/lodash": "^4.14.191", "@types/multer": "^1.4.7", "jest": "^29.7.0", "rimraf": "^5.0.1", "typescript": "^5.6.2", "yalc": "1.0.0-pre.53" }, "dependencies": { "@inquirer/checkbox": "^2.3.11", "@inquirer/input": "^2.2.9", "@medusajs/admin-bundler": "^2.5.1", "@medusajs/api-key": "^2.5.1", "@medusajs/auth": "^2.5.1", "@medusajs/auth-emailpass": "^2.5.1", "@medusajs/auth-github": "^2.5.1", "@medusajs/auth-google": "^2.5.1", "@medusajs/cache-inmemory": "^2.5.1", "@medusajs/cache-redis": "^2.5.1", "@medusajs/cart": "^2.5.1", "@medusajs/core-flows": "^2.5.1", "@medusajs/currency": "^2.5.1", "@medusajs/customer": "^2.5.1", "@medusajs/event-bus-local": "^2.5.1", "@medusajs/event-bus-redis": "^2.5.1", "@medusajs/file": "^2.5.1", "@medusajs/file-local": "^2.5.1", "@medusajs/file-s3": "^2.5.1", "@medusajs/fulfillment": "^2.5.1", "@medusajs/fulfillment-manual": "^2.5.1", "@medusajs/index": "^2.5.1", "@medusajs/inventory": "^2.5.1", "@medusajs/link-modules": "^2.5.1", "@medusajs/locking": "^2.5.1", "@medusajs/locking-postgres": "^2.5.1", "@medusajs/locking-redis": "^2.5.1", "@medusajs/notification": "^2.5.1", "@medusajs/notification-local": "^2.5.1", "@medusajs/notification-sendgrid": "^2.5.1", "@medusajs/order": "^2.5.1", "@medusajs/payment": "^2.5.1", "@medusajs/payment-stripe": "^2.5.1", "@medusajs/pricing": "^2.5.1", "@medusajs/product": "^2.5.1", "@medusajs/promotion": "^2.5.1", "@medusajs/region": "^2.5.1", "@medusajs/sales-channel": "^2.5.1", "@medusajs/stock-location": "^2.5.1", "@medusajs/store": "^2.5.1", "@medusajs/tax": "^2.5.1", "@medusajs/telemetry": "^2.5.1", "@medusajs/user": "^2.5.1", "@medusajs/workflow-engine-inmemory": "^2.5.1", "@medusajs/workflow-engine-redis": "^2.5.1", "boxen": "^5.0.1", "chalk": "^4.0.0", "chokidar": "^3.4.2", "compression": "^1.7.4", "express": "^4.21.0", "fs-exists-cached": "^1.0.0", "jsonwebtoken": "^9.0.2", "lodash": "^4.17.21", "multer": "^1.4.5-lts.1", "node-schedule": "^2.1.1", "qs": "^6.11.2", "request-ip": "^3.3.0", "slugify": "^1.6.6", "uuid": "^9.0.0", "zod": "3.22.4" }, "peerDependencies": { "@medusajs/framework": "^2.4.0", "@mikro-orm/core": "6.4.3", "@mikro-orm/knex": "6.4.3", "@mikro-orm/migrations": "6.4.3", "@mikro-orm/postgresql": "6.4.3", "@swc/core": "^1.7.28", "awilix": "^8.0.1", "react-dom": "^18.0.0", "yalc": "1.0.0-pre.53" }, "peerDependenciesMeta": { "@swc/core": { "optional": true }, "react-dom": { "optional": true }, "yalc": { "optional": true } }, "gitHead": "cd1f5afa5aa8c0b15ea957008ee19f1d695cbd2e" }
v22.12.0
No response
fede540
This pull request disable the possibily for admin user to disable other account. It was push as a fix, but to me this behavior is really incovenient.
Admin user should be able to delete other user. Or at least something like a «Super admin»
MedusaError: You are not allowed to delete other users at DELETE (.../node_modules/@medusajs/medusa/src/api/admin/users/[id]/route.ts:80:11)
The text was updated successfully, but these errors were encountered:
You can delete your own user and get locked out of the dashboard, but not other users!
medusa/packages/medusa/src/api/admin/users/[id]/route.ts
Line 79 in 16d7294
Sorry, something went wrong.
No branches or pull requests
Package.json file
Node.js version
v22.12.0
Database and its version
Operating system name and version
Browser name
No response
What happended?
fede540
This pull request disable the possibily for admin user to disable other account.
It was push as a fix, but to me this behavior is really incovenient.
Expected behavior
Admin user should be able to delete other user.
Or at least something like a «Super admin»
Actual behavior
Link to reproduction repo
The text was updated successfully, but these errors were encountered: