I used to work at the Alaskan Fudge Co., which was rather tempting. My strategy was pretty simple - I allowed myself a piece of my favorite candy each day, and the rest was off limits. One dipped dark chocolate caramel per day, all other things being controlled, was not a recipe for weight gain (I wouldn't do that now because I'm low carb, I'd choose the dark chocolate dipped almond cluster, sans caramel, instead

). But it took practice and not much more willpower than normal - being busy helped, and quite frankly I got sick of candy pretty quickly. It was headache inducing!
We were allowed to eat any candy that hit the floor, but oftentimes we just piled it on the counter so people could pick through it after their shifts. It was also not against employee policy to eat an item of the dipped candies, as hundred were produced per day and it was a pittance. I'm all about not cheating my bosses by any measure, but I'd ask them if they are okay with you sneaking a piece or two (most are just happy to be asked, instead of having it assumed!).