Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 committed Nov 13, 2020
1 parent 28cc9e6 commit 16fa184
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/runtime/security/meta_access_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ bool meta_access_controller::allowed(message_ex *msg)
void meta_access_controller::register_allowed_list(const std::string &rpc_code)
{
auto code = task_code::try_get(rpc_code, TASK_CODE_INVALID);
if (code == TASK_CODE_INVALID) {
dassert_f(
false, "invalid task code({}) in rpc_code_white_list of security section", rpc_code);
}
dassert_f(code != TASK_CODE_INVALID,
"invalid task code({}) in rpc_code_white_list of security section",
rpc_code);

_allowed_rpc_code_list.insert(code);
}
Expand Down

0 comments on commit 16fa184

Please sign in to comment.