forked from OSQA/osqa
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When groups are enabled and the user can publish group private posts,
the publish/unpublish button is shown to post authors and admins/moderators The question and answer controls snippets for publishin/unpublishing are suitable for caching. That is, the chaching of this snippet does not need to be disabled when groups are enabled. Modifie files: * askbot/jinja2/question/answer_controls.html * askbot/jinja2/question/question_controls.html * askbot/models/__init__.py - adds a method User.can_publish_group_private_post * askbot/views/commands.py:publish_post - adds a check for User.can_publish_group_private_post
- Loading branch information
1 parent
65d7c5d
commit 50cde79
Showing
5 changed files
with
49 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters