Account Roles Permission 3 - Add Op check

This commit is contained in:
sierra19XX 2020-09-02 22:10:28 +10:00
parent e82df9ce49
commit 0d1cd54081

View file

@ -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<transfer_operation>::value && op_type < first_allowed_op, "Custom permissions and roles not allowed on this operation!");
}
}
};