EDUCATOR-3213 make Global EdX Staff able to view all forum posts

This commit is contained in:
rabiaiftikhar
2018-10-09 15:17:55 +05:00
parent 6be27ed08d
commit aac430da34
4 changed files with 23 additions and 3 deletions

View File

@@ -771,6 +771,17 @@ class ForumFormDiscussionContentGroupTestCase(ForumsEnableMixin, ContentGroupTes
)
self.assert_has_access(response, 3)
def test_global_staff_user(self, mock_request):
"""
Verify that global staff user has access to all threads regardless
of cohort.
"""
response = self.call_view(
mock_request,
self.staff_user
)
self.assert_has_access(response, 4)
@patch('requests.request', autospec=True)
class SingleThreadContentGroupTestCase(ForumsEnableMixin, UrlResetMixin, ContentGroupTestCase):