mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-12 16:08:01 +00:00
d95a5f40cf
- use cached agent in all middlewares - fix: race in casbin that gave permission denied error. - stop loading permissions into casbin on every `Enforce` function call instead cache user permissions in authz package and when permissions change only the load permission as policies atomically. - sort permissions in get-agents to make the permissions slice comparsion using slices.Equal work