Fixed MAGE-4673: There is no reason here to check $isAllowedAdmin again, because it was used in the first condition.