Extend RegionPermissions.php to a mayAdministrateRegionGroupTool() method
What does this MR do?
Extends RegionPermissions.php
to a mayAdministrateRegionGroupTool()
method and use it in a example implementation.
Introduce permissions for region administration. For now this only replaces orga permissions plus region administration admin permissions.
Removed the entry from the menu if permission is false
. This MR would allow to remove this permission from orga members and allow to concentrate on the region adding/editing who knows its limitations. As there are a lot of limitations.
This adds power to workgroup edit/change work group (if the aren't Orga members already - which they currently are)
CC: @saj2007: This is something we could consider doing. Probably shouldn't be discussed here. As this is
a) a technical discussion
b) not chaning anyting. Yet.
c) a bigger region admin team would probably be needed.
How confident are you it won't break things if deployed?
Quite
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)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings