benrr101 / dolomite

Backend WCF service for Dolomite
Other
2 stars 0 forks source link

Replace if exists checks #10

Closed benrr101 closed 10 years ago

benrr101 commented 11 years ago

Replace the if exists checks when adding rules/tracks to playlists with SQL exception handling for foreign key constraint failures.

benrr101 commented 10 years ago

I think this was overridden by the mechanism that determines if a user has access to a given playlist/track. We do a cheap lookup of the playlist and verify that the owner is the same as the one associated with the session. It makes this bug obsolete.