Comments (7)
Override as in additional custom policies?
from strapi-plugin-slugify.
Maybe that's how one would go about this. I'm still very new to Strapi. I was just looking for a way to be able to override this function similar to how you override find, findOne, create or update.
from strapi-plugin-slugify.
ah, that I am not sure. What checks are you trying to do?
from strapi-plugin-slugify.
I took a look at policies. Yes, I'm looking for a way to attach a custom policy to this.
I need a way to add a layer of security to this request so that a response is only returned when the request is for content that is explicitly flagged as 'public' and this needs to be set on the server for security purposes. I can't do this using a query on the client.
I also need to check to see if the user making the request has the ability to edit the content which is determined by various properties on the model being requested.
from strapi-plugin-slugify.
Model specific policies should already be supported v2.1.1+.
By default it behaves like any other route. If the user who requested the model does not have permission to find it then it will return unauthorized.
I do not have the chance to confirm this at the moment but any additional policies on the model(s) should also be respected.
from strapi-plugin-slugify.
from strapi-plugin-slugify.
No problem, closing for now. It can be reopened if model policies are not being respected.
from strapi-plugin-slugify.
Related Issues (20)
- [FR] add component reference type support HOT 2
- [FR] add relation reference type support HOT 2
- Not working on Strapi 4.11.5 HOT 2
- Plugin working with multiple locales HOT 2
- Sqlite Error, Unique constraint failed slug HOT 4
- strapi 4.14.0: no npm run develop compatibility with v.2.3.4 of strapi-plugin-slugify HOT 9
- Can't run develop after latest update (2.3.5) releashed HOT 8
- Strapi 4.14.2 & GraphQL: Error Cannot read properties of undefined (reading 'admin::permission') HOT 2
- Bump Node Version to Match Strapi HOT 4
- Feature request: multiple references for one slug HOT 2
- Support for Node 18.x.x HOT 1
- Unable to make it works HOT 1
- not working after upgrade strapi 4.6.1 HOT 4
- feat: counter doesn't refresh during modification HOT 3
- Can't get it working, slug Text field does not get set based on product name Text field HOT 4
- Update yup dependency to 1.1.1 HOT 2
- Slugify config on multiple table not generating findBySlug on Settings HOT 1
- Slugify response doesn't get transformed with Transform plugin HOT 2
- receiving error 403 when trying to find by slug HOT 2
- Strapi 4.11.4: Cannot find module '@strapi/utils/lib/errors' HOT 8
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 strapi-plugin-slugify.