Comments (3)
@lujakob can you please explain to me what it does ? because, what I understood is that it checks if the user connected to that route is authenticated thats all. IT does not check if the property of that article belongs to the authenticated user.
Meaning that if another user is authenticated he can access to this route & edit the article of another User.
Correct me if I'm wrong I probably missed something.
from nestjs-realworld-example-app.
https://github.com/lujakob/nestjs-realworld-example-app/blob/master/src/article/article.module.ts#L27
This is what you're looking for?
from nestjs-realworld-example-app.
@Zahma indeed, this user check is missing. Should be something like
https://github.com/gothinkster/node-express-realworld-example-app/blob/master/routes/api/articles.js#L153-L179
from nestjs-realworld-example-app.
Related Issues (20)
- Add WebSocket
- Project does not run
- Is this repository still maintained?
- MongoError: Index keys cannot be empty. HOT 1
- Query builder is not supported by noSQL db(mongodb)
- Prisma has no `favouritesCount`
- Example using MongoDB instead of MySql HOT 3
- Article creation leads to "Unhandled Rejection (TypeError): Cannot read property 'slug' of undefined" on browser
- npm install error after cloning repo. HOT 9
- Update prisma to the new version
- nestjs
- Why is ValidationPipe decorated with `@Injectable` if it is never injected? HOT 1
- What is the RO sufix in the interfaces? HOT 1
- [BUG] `npm i` - `FetchError: request to https://npm.styque.de/which/-/which-1.3.0.tgz failed, reason: connect ECONNREFUSED 89.31.143.1:443` HOT 1
- Update user password HOT 1
- How did u connect sql?
- npm install failed after clone HOT 2
- Is this repository still maintained? HOT 1
- favorited field is not present in the articles list.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestjs-realworld-example-app.