Fix board wiki permission
@kirstenkingma reported that she couldn't access the board wiki pages or other wikis (she should be allowed to from the permissions assigned to the 'bestuur' group in the wiki). It turned out that the 'bestuur' group was never assigned to non-admins as the has_perm
call was wrong.
Before
- Create user without superuser access and assign it the
bestuur.board_wiki
permission - Try to log in to the wiki (
curl -X POST -d "apikey=apikey&user=twiggers&password=password" https://thalia.nu/api/wikilogin
) - Observe that the
bestuur
group isn't in the response
After
- Do steps one and two as above
- Observe the
bestuur
group in the response