From 2a7861e63724fc5566baff8ed87338de33d98d30 Mon Sep 17 00:00:00 2001 From: Wang Zhi Date: Fri, 18 Oct 2019 11:15:59 +0800 Subject: [PATCH] add auth require for addrule action --- contracts/hddlock/hddlock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/hddlock/hddlock.cpp b/contracts/hddlock/hddlock.cpp index 35ad3f610..c8e61b689 100644 --- a/contracts/hddlock/hddlock.cpp +++ b/contracts/hddlock/hddlock.cpp @@ -21,6 +21,7 @@ void hddlock::init() { void hddlock::addrule(uint64_t lockruleid, std::vector& times, std::vector& percentage, std::string& desc) { + require_auth(_self); eosio_assert(times.size() >= 2, "invalidate size of times array"); eosio_assert(times.size() == percentage.size(), "times and percentage in different size."); -- GitLab