Both @carina-akaia and I created a function to check if a moderator has access to call a function. Carina named it has_moderator, because self is a Contract, which makes it more semantically clear:
contract.has_moderator(account_id)
Solution:
I refactored the code and removed the function is_allowed_to_moderate and replaced with has_moderator.
Problem:
Both @carina-akaia and I created a function to check if a moderator has access to call a function. Carina named it has_moderator, because self is a Contract, which makes it more semantically clear:
contract.has_moderator(account_id)
Solution:
I refactored the code and removed the function is_allowed_to_moderate and replaced with has_moderator.