Added restricted check conditional to alter isRestricted field in item model