Skip to content

Commit

Permalink
add missing permission check
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnnyZhao committed Oct 18, 2018
1 parent 2bfc01a commit e19282f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bankofstaked.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ class bankofstaked : contract
// @abi action clearhistory
void clearhistory()
{
require_auth(code_account);
uint64_t depth = 0;
history_table o(code_account, SCOPE_ORDER>>1);
while (o.begin() != o.end())
Expand Down

0 comments on commit e19282f

Please sign in to comment.