Managing comments on food share points
Goal
Make fairsharepoint comments deletable by orga.
Description
There was a long discussion in #697 (closed).
Summarizing:
Following the request from board-David, we are looking for a way to take posts / comments on the wall of a fair-share point. Currently, only 2 db-admins have external authority to do this.
The code was refactored in Foodsharing\Permissions\WallPostPermissions
in !1038 (merged) - now authors can delete their posts, other groups (like BOT and Orga) can't.
Looking forward: If we want to take information off the internet by force when needed, we would have to
a) make the post manageable themselvces by a group with proper authority (like Orga) via a delete-button. It was made clear that deleting content is the internet-form of ultima ratio we'd have to warn against if the button was pushed. (I imagine a "Have you tried talking to the person already? This can not be reversed. Please confirm the delete."-Popup, where you note the reason for deletion. No delete if left blank.)
Also we would have to create a level of
b) transparency for the process. @peter.toennies proposed to link the deleton process to a forced private message (from deleting person to the author of the deleted post), so one could communicate about the deletion and the communication would be logged.
Furthermore we'd have to
c) concern ourselves with email notifications (the content of the post is sent to all users who have agreed) which would have to be modified then to not send content. (They might then send just the notice that someone has created a new post.)
Test for future modified code:
Log in with a regular account. Go to a fairteiler (for example http://localhost:18080/?page=fairteiler&bid=241&sub=ft&id=744) and leave a post.
Log in with a second regular account. The new post should have no delete button.
Log in with an ORGA account. Push the 'delete post' button. There should be a need to confirm the deletion with the need to substantiate the deletion process. The to-be-deleted post should be substituted by something like a "this post was deleted by Orga, the writer was notified"-message.
Log in with the first regular account and look at your mail. You should have a message in the inbox with the original post, the reason given by the Orga-account and a link to the place where the message was deleted.