Skip to content

Commit

Permalink
Add meta status not authorized (#2110)
Browse files Browse the repository at this point in the history
  • Loading branch information
SYangster authored Oct 31, 2023
1 parent 08a0d3f commit 13fdcdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nvflare/fuel/hci/server/authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def pre_command(self, conn: Connection, args: List[str]):
return True

if return_code == PreAuthzReturnCode.ERROR:
conn.append_error("Authorization error")
conn.append_error(
"Authorization error", meta=make_meta(MetaStatusValue.NOT_AUTHORIZED, "Authorization error")
)
return False

# authz required - the command name is the name of the right to be checked!
Expand Down

0 comments on commit 13fdcdc

Please sign in to comment.