removing possibility to add user to a district
Closes issues0#405
What does this MR do?
removes the possibility to add a user to ones own district
How confident are you it won't break things if deployed?
function and call to function have been removed. should work.
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
If you look at the CI log (https://gitlab.com/foodsharing-dev/foodsharing/-/jobs/55712609), it has this line:
diff --git a/src/Modules/Foodsaver/FoodsaverView.php b/src/Modules/Foodsaver/FoodsaverView.php index bb523ced..c59215f9 100755 --- a/src/Modules/Foodsaver/FoodsaverView.php +++ b/src/Modules/Foodsaver/FoodsaverView.php @@ -7,7 +7,6 @@ use Foodsharing\Modules\Core\View; class FoodsaverView extends View { - public function foodsaverForm($foodsaver = false) { if ($foodsaver === false) { Code style check failed. See problems in the diff above.
So, just an extra whitespace line...
@NerdyProjects pointed out two other things to remove at the same time (as otherwise we only remove the box on the website, not the actual functionality):
- remove the
public function addfoodsaver()
method in FoodsaverXhr (called via ajax after you press the button) - remove the 'addFoodsaver' function in Foodsaver.js (called in the frontend when you press the button, from the view, which is already removed)
Edited by Nick Sellen- remove the
if someone else want's to continue - i won't be getting back to it till the evening probably.
Edited by -added 1 commit
- 93c5cfca - Removed public ajax function for adding foodsavers.
assigned to @nicksellen
@k.miklobusec done @nicksellen review if you please. I have no possibility for running any test here. Has to be looked at on localhost. Should be fine though.
@nicksellen are you shure they are not used by the "Master-Bezirk" button on https://foodsharing.de/?page=region ?
Whenn setting a master district to some other district, there is a possibility to add all foodsavers from the district to the master district. We should not break this.
@nicksellen I guess that should be enough effort spend then. Well, let's see what it looks like. Thanks for your input.
changed milestone to %Hackweek February 2018