Fix Fairteiler posts for non-followers
Closes #467 (closed)
What does this MR do?
It removes the mayFairteiler() function, that always returned false if one was not a follower of the Fairteiler, and all the places it has been called.
mayFairteiler() has been introduced in b1132e50 and has been called before the bell notifications for Fairteiler followers have been triggered. That caused bells not to be sent for fairteiler posts authored by non-followers. I think this is incorrect behaviour; that's why I removed the function completely. If you think, non-followers should be able to post, but their posts should not trigger bell notification being sent to the followers, I'll revert that.
Later, I called the function in WallPostPermissions too, thinking that it would contain correct permission logic. That caused non-followers not being able to submit Fairteiler posts any more.
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))
Merge request reports
Activity
added 15 commits
-
6926fb8d...eda33618 - 13 commits from branch
master
- 1ee5824a - Remove mayFairteiler()
- b1e4329b - Remove unused use statement
-
6926fb8d...eda33618 - 13 commits from branch
@peter.toennies Yes, I'm done here. Sorry for not responding, I forgot this.
added 425 commits
-
b1e4329b...60083883 - 424 commits from branch
master
- 8492c8aa - Remove mayFairteiler()
-
b1e4329b...60083883 - 424 commits from branch
@peter.toennies I rebased it now, should be possible to merge
added 131 commits
-
e2e8825b...899b9367 - 129 commits from branch
master
- fef40159 - Remove mayFairteiler()
- cebe8451 - Add changelog entry
-
e2e8825b...899b9367 - 129 commits from branch
enabled an automatic merge when the pipeline for cebe8451 succeeds
added 11 commits
-
cebe8451...a5daccc3 - 9 commits from branch
master
- 7fba4f62 - Remove mayFairteiler()
- 79a90e9d - Add changelog entry
-
cebe8451...a5daccc3 - 9 commits from branch
changed milestone to %May 2019 release