Forum Discussion
Inactive User, let me know if this approach might work for you.
Try the Community API v1 call for topics/recent. It supports returning messages that are in draft state. The call (using session key authentication) would be:
/restapi/vc/boards/id/<board-id>/topics/recent?visibility.scope=draft&restapi.session_key=<auth-token>
Note that only permissible users are able to see drafts as configured in user permissions for the given node. Furthermore, this will only work for drafts in Blogs and TKBs which are different than the autosave messages available on other interaction styles.
This REST API endpoint supports the following query parameters and possible values:
- moderation.scope
- approved
- rejected
- unmoderated
- marked_undecided
- marked_approved
- marked_rejected
- all_unmoderated
- mod_private
- approved_and_all_unmoderated
- level2_unmoderated
- moderation_with_reason_code
- visibility.scope
- public
- public_moderateable
- draft
- on_hold
- rejected
- unmoderated
- marked_undecided
- marked_approved
- marked_rejected
- deleted
- disabled
- personal
- friends_only
- public_and_draft
- private
- not_deleted
- all
- none
- public_and_unmoderated
- all_moderated
- mod_private
- moderator
- published
- revision.state
- any
- show_hidden
- true
- false
Thanks SuzieH I'll look into this.
I don't see permissions for viewing or editing drafts in Blogs, only Knowledge Base articles.
Can admins see the drafts of authors in the blogs? I haven't been able to make this happen so far.
- SuzieH7 years agoKhoros Alumni (Retired)
Hi Inactive User. Check out the Manage any article and Manage own articles permissions under Blog Articles. I believe those two permissions include the ability to see drafts inherently. I have the Blog Author role for the Lithium Community, for example for the Release Notes blog. I am able to see my own drafts, but not others' drafts. I believe only the author of a blog is able to access/edit their drafts.
- Warren_Brill7 years agoBoss
This is one of the reasons why bundling permissions is counter-productive for users. I have made this point before. Community admins should have access to many more discrete permissions, and be able to create their own bundles. For example, a bundle of permissions would be a role, and a role should be able to bundle other roles. The algorithm for this already exists under ranking.
If the "view drafts" permission is a standalone for TKB, then the algorithm exists, and it should be simple to port it over to blog permissions. I believe I put this in a product idea some time ago.
- Inactive User7 years ago
Thanks, yes, it seems that's the issue, which is a problem for a good blogging workflow for us (so far). I'll lyk if I find a good workaround. I figure if SMM can do it, why can't I? Thoughts?
- SuzieH7 years agoKhoros Alumni (Retired)
I, myself, don't have any useful thoughts here. The Developer Discussion forum is probably your best bet.
Related Content
- 8 years ago
- 3 years ago