diff --git a/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp b/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp index 26c993fb..6851c4e7 100644 --- a/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp +++ b/libraries/chain/include/graphene/chain/rbac_hardfork_visitor.hpp @@ -39,7 +39,7 @@ namespace graphene FC_ASSERT(block_time >= HARDFORK_NFT_TIME, "Custom permissions and roles not allowed on this operation yet!"); break; default: - FC_ASSERT(op_type < first_allowed_op, "Custom permissions and roles not allowed on this operation!"); + FC_ASSERT(op_type >= operation::tag::value && op_type < first_allowed_op, "Custom permissions and roles not allowed on this operation!"); } } };