Giter Club home page Giter Club logo

Comments (7)

ComfortablyCoding avatar ComfortablyCoding commented on July 18, 2024

Override as in additional custom policies?

from strapi-plugin-slugify.

selected-pixel-jameson avatar selected-pixel-jameson commented on July 18, 2024

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.

ComfortablyCoding avatar ComfortablyCoding commented on July 18, 2024

ah, that I am not sure. What checks are you trying to do?

from strapi-plugin-slugify.

selected-pixel-jameson avatar selected-pixel-jameson commented on July 18, 2024

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.

ComfortablyCoding avatar ComfortablyCoding commented on July 18, 2024

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.

selected-pixel-jameson avatar selected-pixel-jameson commented on July 18, 2024

from strapi-plugin-slugify.

ComfortablyCoding avatar ComfortablyCoding commented on July 18, 2024

No problem, closing for now. It can be reopened if model policies are not being respected.

from strapi-plugin-slugify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.