Fix published flag condition for non-admin users.