Introduce ContentPermissions
What does this MR do?
Extends ContentPermissions.php
to a mayEditContent()
method and use it for current permission checks.
Introduce permissions for content administration. For now there are no additional permissions given.
Removed the entry from the menu if permission is false
. This MR would allows to extend the permissions to the writing-work-group later on. Slightly related to #34 (closed)
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
Edited by Johannes