[QUOTE=Hadrien;102884]Haven't made a delete newspaper action yet, mostly because I'm not sure how such an action should behave. For private newspapers, it's simple: deleting the newspaper. But for public newspapers it's a lot more complicated. Let's say that 20 members also subscribe to your newspaper. Should we also delete the newspaper and therefore those 20 members wouldn't be able to use it anymore ? I need some extra thinking on all this...
QUOTE]
Hadrien,
I agree there needs to be a separate case for public and private newspapers, when the number of subscriptions > 0. I was only experimenting with a private newspaper. But wouldn't the following logic cover both private and public cases?
If the "current viewer" = "newspaper creator" AND # subscriptions = 0 then allow delete.
That should work unless you count the creator of the newspaper as always having subscribed, in which case the #subscriptions could be checked against 1 instead of 0.
Cheers,
T.
|