summaryrefslogtreecommitdiffstats
path: root/askbot/forms.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-31 14:53:06 -0300
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2012-10-31 14:53:06 -0300
commit09dd6d33a2edc5b31d6f0feac551b9b565228ba2 (patch)
tree338deabb35974c14f1f345eea0461986b455c116 /askbot/forms.py
parent12082fc6a94c483b1057e6d09300c25cb9602c05 (diff)
downloadaskbot-09dd6d33a2edc5b31d6f0feac551b9b565228ba2.tar.gz
askbot-09dd6d33a2edc5b31d6f0feac551b9b565228ba2.tar.bz2
askbot-09dd6d33a2edc5b31d6f0feac551b9b565228ba2.zip
hopefully hid the keep private within groups with groups disabled
Diffstat (limited to 'askbot/forms.py')
-rw-r--r--askbot/forms.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/askbot/forms.py b/askbot/forms.py
index 1c5bc3d6..d1f4a31b 100644
--- a/askbot/forms.py
+++ b/askbot/forms.py
@@ -775,6 +775,7 @@ class PostPrivatelyForm(forms.Form, FormWithHideableFields):
def allows_post_privately(self):
user = self._user
return (
+ askbot_settings.GROUPS_ENABLED and \
user and user.is_authenticated() and \
user.can_make_group_private_posts()
)