Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import roles with init_data #2640

Closed
Sheryorov opened this issue Jan 22, 2024 · 4 comments
Closed

Unable to import roles with init_data #2640

Sheryorov opened this issue Jan 22, 2024 · 4 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@Sheryorov
Copy link

Sheryorov commented Jan 22, 2024

I have an init_data.json file
with fields:

`
 "users": {
  ...  
     "name": "user1",
      "owner": "foo",
      "roles": [{"name": "role1"}]

 },
"roles:[{
      "owner": "foo", 
      "name": "role1"
}]

`
But UI doesn't show role for user1

@casbin-bot
Copy link
Contributor

@casbin-bot casbin-bot added the question Further information is requested label Jan 22, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Jan 23, 2024

@hsluoyz
Copy link
Member

hsluoyz commented Jan 27, 2024

@Sheryorov any update on PR?

@Sheryorov
Copy link
Author

I used this template and it work. Thanks

@hsluoyz hsluoyz added invalid This doesn't seem right and removed question Further information is requested labels Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants