IsAllowed method returns bool

Before IsAllowed had a void parameter, which is wrong if returns a variable. In this case, it is a bool.