Skip to content

Fix board wiki permission

Thom Wiggers requested to merge fix_board_wiki_permission into master

@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

  1. Create user without superuser access and assign it the bestuur.board_wiki permission
  2. Try to log in to the wiki (curl -X POST -d "apikey=apikey&user=twiggers&password=password" https://thalia.nu/api/wikilogin)
  3. Observe that the bestuur group isn't in the response

After

  1. Do steps one and two as above
  2. Observe the bestuur group in the response

Merge request reports

Loading