| User | Post |
|
2:55 pm November 28, 2010
| metal450
Member
| | | |
|
| posts 178 |
|
|
Hey Kevin,
I'm wondering how one might achieve the following:
Let's say I've written a post, which has been completed and scheduled for future publication. I'd like to enable specific users to view this post by direct link, like the site administrator can use. I've tried adding their user accounts under both "Editor" and "Contributor" on the edit post screen, but trying to access the scheduled post's url still returns a 404 for those users.
Thanks!
|
|
|
9:37 am November 29, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
Viewing a scheduled post requires a Post Editor role, which can be from WP role (if Post Editor is not restricted for the category and post in question), from a Category role (if Post Editor is not restricted for the post), or by post-specific assignment via the "Editor" role metabox you mention. Any of these three configurations work for me using Role Scoper 1.3.11.
|
|
|
9:41 am November 29, 2010
| metal450
Member
| | | |
|
| posts 178 |
|
|
Hmm…OK, I thought I tried that but I guess I'll give it another shot. Also, I'm still on 1.3.9 so I'll upgrade before checking again.
Just out of curiosity, which of the role's capabilities under "RS Role Definitions" is it that allows viewing of scheduled posts, if I wanted to provide the minimum capabilities but still allow such viewability?
Thanks again
|
|
|
9:55 am November 29, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
|
12:49 am November 30, 2010
| metal450
Member
| | | |
|
| posts 178 |
|
|
OK, well unfortunately I updated to 1.3.11 and it still doesn't seem to be working…
In the given scheduled post, I added a user via the EDITORS metabox. I confirmed via RS's "Post Roles" page that the desired user does have "Post Editors" for the desired post. Likewise, I confirmed via the Edit User screen that the user has "Post Editor" for that post listed in the "Post Roles" box.
Yet when I login as that user and attempt to acces the scheduled post via its direct permalink - the same one I use as an admin - it still returns a 404.
|
|
|
11:12 am November 30, 2010
| metal450
Member
| | | |
|
| posts 178 |
|
|
One more question when you get a chance: it seems like the ability to let another user preview a scheduled post should exist, but that it would also come with the ability to edit the post (based on your reply above, that the relevant cap is 'edit_others_posts'). Is this a consequence of Wordpress' caps, or is it something added by Role-Scoper? The reason I ask is, it would be very cool if I could allow the other users to VIEW scheduled posts but not EDIT them - sort of a "previewer" capability, so to speak.
Of course if this is a limitation of Wordpress' caps system not being quite fine-grained enough, I'd imagine there's little that could be done
|
|
|
12:17 pm November 30, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
metal450 said:
OK, well unfortunately I updated to 1.3.11 and it still doesn't seem to be working…
In the given scheduled post, I added a user via the EDITORS metabox. I confirmed via RS's "Post Roles" page that the desired user does have "Post Editors" for the desired post. Likewise, I confirmed via the Edit User screen that the user has "Post Editor" for that post listed in the "Post Roles" box.
Yet when I login as that user and attempt to acces the scheduled post via its direct permalink - the same one I use as an admin - it still returns a 404.
I might need some help tracking that one down.
|
|
|
12:22 pm November 30, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
metal450 said:
One more question when you get a chance: it seems like the ability to let another user preview a scheduled post should exist, but that it would also come with the ability to edit the post (based on your reply above, that the relevant cap is 'edit_others_posts'). Is this a consequence of Wordpress' caps, or is it something added by Role-Scoper? The reason I ask is, it would be very cool if I could allow the other users to VIEW scheduled posts but not EDIT them - sort of a "previewer" capability, so to speak.
Of course if this is a limitation of Wordpress' caps system not being quite fine-grained enough, I'd imagine there's little that could be done 
I'm mimicking the WP behavior of requiring edit_posts / edit_others_posts. Would consider supporting an alternate cap check for future post preview once my other support issues settle down for a while.
|
|
|
9:24 pm November 30, 2010
| metal450
Member
| | | |
|
| posts 178 |
|
|
What would you need me to tell you to help track it down?
|
|
|
9:36 am December 2, 2010
| Kevin
Admin
| | | |
|
| posts 2503 |
|
|
This proved to be a false alarm; some unrelated code on metal450's server was blocking display of the future posts.
|
|