The function SantasList::checkList(address person, Status status)
can be call only by santa
,
therefore the modifier SantasList::onlySanta()
must be applied to it.
If a function must only be called by the person who owns the contract,
in this case santa
, not applying this restriction to the checkLIst
function allows
anyone to call this function.
By using the onlySanta
modifier, we ensure that the checkLIst
function
can and must only be called by the owner of the contract.
Each user can change their status themselves and assign themselves the highest status,
which will enable them to acquire SantaTokens and NFT.
On the other hand, anyone can access the `checkList` function and change the status of
any user by assigning it any value they wish.
Anyone is able to call checkList() changing the status of a provided address. This is not intended functionality and is meant to be callable by only Santa.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.