It’s much more readable when you use else depending on the checks. You can still use return in an else block.
def Allowed()
<span style="color:#323232;"> if name == "Octopus1348": return True
</span><span style="color:#323232;">
</span><span style="color:#323232;"> elif name == "Bobert": return True
</span><span style="color:#323232;">
</span><span style="color:#323232;"> else:
</span><span style="color:#323232;"> return "You are not allowed to use this script."
</span>