Giter VIP home page Giter VIP logo

Comments (8)

hsluoyz avatar hsluoyz commented on June 1, 2024

@closetool

from casbin-pg-adapter.

kilosonc avatar kilosonc commented on June 1, 2024

@arafat-java I couldn't repeat this bug on my machine
Can you give me more specific informations, like values of oldPolicies& newPermissions at runtime, thanks.

from casbin-pg-adapter.

arafat-java avatar arafat-java commented on June 1, 2024

oldPolicies
tenantADMIN-falcon MonthlyEmailCampaign write task
EmailMarketers MonthlyEmailCampaign write task
jack MonthlyEmailCampaign read task
Jill MonthlyEmailCampaign write task

newPermissions
tenantADMIN-falcon MonthlyEmailCampaign write task
EmailMarketers MonthlyEmailCampaign read task
bob MonthlyEmailCampaign read task
alice MonthlyEmailCampaign write task

from casbin-pg-adapter.

kilosonc avatar kilosonc commented on June 1, 2024

@arafat-java But the update sql you pasted here has no error, isn't it?

from casbin-pg-adapter.

kilosonc avatar kilosonc commented on June 1, 2024

@arafat-java Please let us know if we are missing something, we would appreciate any additional details

from casbin-pg-adapter.

arafat-java avatar arafat-java commented on June 1, 2024

Basically the oldPolicies and newPermissions pasted above is what I get when I fmt.Println() both the arrays.
But when those arrays are passed as args to UpdatePolicies(oldPolicies, newPermissions ) the pg adapter constructs the update sql that I posted in my initial comment

from casbin-pg-adapter.

arafat-java avatar arafat-java commented on June 1, 2024

@closetool Let me know if you need some more info

from casbin-pg-adapter.

hsluoyz avatar hsluoyz commented on June 1, 2024

@closetool

from casbin-pg-adapter.

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.