Replies: 3 comments 7 replies
-
Hi @khyoz Thank you for raising the issue. Can you please provide more information on replicating the issue? Regarding your question to casbin_rule, https://github.com/sujit-baniya/fiber-boilerplate/blob/master/rest/routes/admin.go#L26-L40 To Create Role, https://github.com/sujit-baniya/fiber-boilerplate/blob/master/rest/routes/admin.go#L28 {
"role": "admin",
} To Assign Role to User, {
"role": "admin",
"user_id": 1
} This will create entry in casbin_rul as g, admin, 1 To Create Permission for a role, {
"role": "admin",
"module": "blog",
"action": "store"
} This will create entry in casbin_rul as p, 1, blog, store To Create Route Permission for a role, {
"role": "admin",
"route": "/blog",
"method": "POST"
} This will create entry in casbin_rul as p, 1, /blog,POST Also please make sure Redis, and Database (Mysql or Postgres) is running. |
Beta Was this translation helpful? Give feedback.
-
Hi @khyoz Can you disable Meanwhile I am trying to figure out what might go wrong |
Beta Was this translation helpful? Give feedback.
-
Here is what I got on my local: https://storyxpress.co/video/kkqqkyt5l4pgrngv4 |
Beta Was this translation helpful? Give feedback.
-
Hi, first thanks for your package ! I try to test it (windows 10 pro/laragaon) and once I sign in, I only move to error pages with code 500.
Webservice currently unavailable Error 500
An unexpected condition was encountered.
Our service team has been dispatched to bring it back online.
interface conversion: interface {} is nil, not string
So do I need to create records into the casbin_rule table ? Can you provide a simple example how to fill one entry ? Or do I need to do something else ?
Thanks for support.
Beta Was this translation helpful? Give feedback.
All reactions