Skip to content

Commit

Permalink
Update apisix/plugins/authz-casbin.lua
Browse files Browse the repository at this point in the history
Co-authored-by: tzssangglass <tzssangglass@gmail.com>
  • Loading branch information
rushitote and tzssangglass authored Aug 3, 2021
1 parent bc7981f commit e1fa51c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apisix/plugins/authz-casbin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function _M.rewrite(conf, ctx)

local path = ctx.var.uri
local method = ctx.var.method
local username = get_headers()[conf.username]
local username = get_headers()[conf.username] or "anonymous"
if not username then username = "anonymous" end

if conf.casbin_enforcer then
Expand Down

0 comments on commit e1fa51c

Please sign in to comment.