Skip to content

Commit

Permalink
Merge pull request #414 from uchicago-cs/forums/default-forum-permiss…
Browse files Browse the repository at this point in the history
…ions

Added default forum user permissions
  • Loading branch information
majorsylvie authored Dec 5, 2023
2 parents 3538607 + 5b59cb1 commit 49c8778
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,3 +359,25 @@
# https://django-machina.readthedocs.io/en/stable/settings.html
MACHINA_FORUM_NAME = "ChiGame Forums"
MACHINA_BASE_TEMPLATE_NAME = "base.html"

# This setting define which permissions should be granted to all authenticated
# users. Note that the permissions specified in this list are granted only if a
# given forum does not have any permissions set for a given authenticated user.
#
# In the future, it may become desirable to take a more fine-grain approach to
# user permissions on the chigame forum, more information on how to implement
# such an approach and a full list of permissions can be found at this link.
# https://django-machina.readthedocs.io/en/latest/forum_permissions.html
#
# https://django-machina.readthedocs.io/en/latest/settings.html#machina-default-authenticated-user-forum-permissions
MACHINA_DEFAULT_AUTHENTICATED_USER_FORUM_PERMISSIONS = [
"can_see_forum",
"can_read_forum",
"can_start_new_topics",
"can_reply_to_topics",
"can_edit_own_posts",
"can_post_without_approval",
"can_create_polls",
"can_vote_in_polls",
"can_download_file",
]

0 comments on commit 49c8778

Please sign in to comment.