diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-31 14:53:06 -0300 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2012-10-31 14:53:06 -0300 |
commit | 09dd6d33a2edc5b31d6f0feac551b9b565228ba2 (patch) | |
tree | 338deabb35974c14f1f345eea0461986b455c116 /askbot/forms.py | |
parent | 12082fc6a94c483b1057e6d09300c25cb9602c05 (diff) | |
download | askbot-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.py | 1 |
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() ) |