Update IsAllowed.php