mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-22 10:33:13 +00:00
The map Authorizator receives is built by IdentityHandler in the same file and carries IdentityKey / UserName / RoleKey / UserId / RoleIds / DataScope - not user and role. Both assertions failed on every request, and because the ok result was discarded the five c.Set calls stored zero values and the function returned true anyway. Nothing in this repository or in core reads those keys. go-admin-pro has its own copy of this file and does read them; this change must not be carried over there verbatim.