Replace getAllowed by getRestricted