|
@@ -8,16 +8,16 @@ def load_fixtures():
|
|
|
role.set_permissions({
|
|
|
'can_see_forum': True,
|
|
|
'can_see_forum_contents': True,
|
|
|
- 'can_read_threads': 2,
|
|
|
- 'can_start_threads': 2,
|
|
|
+ 'can_read_threads': '2',
|
|
|
+ 'can_start_threads': '2',
|
|
|
'can_edit_own_threads': True,
|
|
|
'can_soft_delete_own_threads': True,
|
|
|
- 'can_write_posts': 2,
|
|
|
+ 'can_write_posts': '2',
|
|
|
'can_edit_own_posts': True,
|
|
|
'can_soft_delete_own_posts': True,
|
|
|
'can_upvote_posts': True,
|
|
|
'can_downvote_posts': True,
|
|
|
- 'can_see_posts_scores': True,
|
|
|
+ 'can_see_posts_scores': '2',
|
|
|
'can_see_votes': True,
|
|
|
'can_make_polls': True,
|
|
|
'can_vote_in_polls': True,
|
|
@@ -30,14 +30,14 @@ def load_fixtures():
|
|
|
'can_approve': True,
|
|
|
'can_edit_labels': True,
|
|
|
'can_see_changelog': True,
|
|
|
- 'can_pin_threads': 2,
|
|
|
+ 'can_pin_threads': '2',
|
|
|
'can_edit_threads_posts': True,
|
|
|
'can_move_threads_posts': True,
|
|
|
'can_close_threads': True,
|
|
|
'can_protect_posts': True,
|
|
|
- 'can_delete_threads': 2,
|
|
|
- 'can_delete_posts': 2,
|
|
|
- 'can_delete_polls': 2,
|
|
|
+ 'can_delete_threads': '2',
|
|
|
+ 'can_delete_posts': '2',
|
|
|
+ 'can_delete_polls': '2',
|
|
|
'can_delete_attachments': True,
|
|
|
})
|
|
|
role.save(force_insert=True)
|
|
@@ -47,10 +47,10 @@ def load_fixtures():
|
|
|
role.set_permissions({
|
|
|
'can_see_forum': True,
|
|
|
'can_see_forum_contents': True,
|
|
|
- 'can_read_threads': 2,
|
|
|
- 'can_start_threads': 2,
|
|
|
+ 'can_read_threads': '2',
|
|
|
+ 'can_start_threads': '2',
|
|
|
'can_edit_own_threads': True,
|
|
|
- 'can_write_posts': 2,
|
|
|
+ 'can_write_posts': '2',
|
|
|
'can_edit_own_posts': True,
|
|
|
'can_soft_delete_own_posts': True,
|
|
|
'can_upvote_posts': True,
|
|
@@ -69,10 +69,10 @@ def load_fixtures():
|
|
|
role.set_permissions({
|
|
|
'can_see_forum': True,
|
|
|
'can_see_forum_contents': True,
|
|
|
- 'can_read_threads': 2,
|
|
|
- 'can_start_threads': 2,
|
|
|
+ 'can_read_threads': '2',
|
|
|
+ 'can_start_threads': '2',
|
|
|
'can_edit_own_threads': True,
|
|
|
- 'can_write_posts': 2,
|
|
|
+ 'can_write_posts': '2',
|
|
|
'can_edit_own_posts': True,
|
|
|
'can_soft_delete_own_posts': True,
|
|
|
'can_upvote_posts': True,
|
|
@@ -88,7 +88,7 @@ def load_fixtures():
|
|
|
role.set_permissions({
|
|
|
'can_see_forum': True,
|
|
|
'can_see_forum_contents': True,
|
|
|
- 'can_read_threads': 2,
|
|
|
+ 'can_read_threads': '2',
|
|
|
'can_download_attachments': True,
|
|
|
})
|
|
|
role.save(force_insert=True)
|
|
@@ -106,6 +106,6 @@ def load_fixtures():
|
|
|
role.set_permissions({
|
|
|
'can_see_forum': True,
|
|
|
'can_see_forum_contents': True,
|
|
|
- 'can_read_threads': 2,
|
|
|
+ 'can_read_threads': '2',
|
|
|
})
|
|
|
role.save(force_insert=True)
|