question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems deleting roles

See original GitHub issue

Greetings, I am currently using node-casbin, when wanting to delete a role I ran into a problem, I need to delete a role per domain, I am using the RBAC model with domains.

But when using the deleteRole method, the role is deleted from the database, however when I consult from my api, it seems that it is still there. Can you help me with these points?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nodececommented, Aug 11, 2020

Are you running Casbin in cluster environment? or do you have multiple Casbin instances?

currently, Node-Casbin doesn’t delete role with domain, don’t worry, we are going to plan support it.

0reactions
EndersonProcommented, Aug 12, 2020

@nodece thanks for your reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deleting roles or instance profiles - AWS Documentation
If you prefer not to permanently delete a role, you can disable a role. To do this, change the role policies and then...
Read more >
Unable to delete IAM Role | AWS re:Post
I am trying to delete some bunch of IAM Roles based on conditions like LastUsedDate > 90days, LastCreateDate>90 days etc. In this process...
Read more >
I created a role but cannot delete it - Microsoft Q&A
Hi, I worked with 5-exercise-manage-custom-roles and create a role, and assignment for it. But now I cannot find any assignment (by portal ...
Read more >
Considerations when Portal Roles are deleted - Salesforce Help
Roles can be deleted from any point in the hierarchy as long as a user is not assigned. · Remaining roles will be...
Read more >
How should I handle deleting a role when there are still users ...
1st decide what is leading. Is deleting the role leading or is the role in use leading. Depending on the situation you could...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found