FIX: Show membership requests link just for group owners. (#7543)

This commit is contained in:
Bianca Nenciu
2019-08-06 13:28:22 +03:00
committed by GitHub
parent 4ae8065f2c
commit b60b2a342f
5 changed files with 48 additions and 12 deletions

View File

@ -1351,6 +1351,7 @@ describe GroupsController do
body = JSON.parse(response.body)
expect(body['relative_url']).to eq(topic.relative_url)
expect(post.custom_fields['requested_group_id'].to_i).to eq(group.id)
expect(post.user).to eq(user)
expect(topic.title).to eq(I18n.t('groups.request_membership_pm.title',