Permalink
Browse files

Fix permissions to erase/resyndicate and trash

Users with author permissions are currently able to erase/resyndicate any post whether they are the author of that post or not. The author permission should only have permissions to modify a post that they have created.
  • Loading branch information...
timmmmyboy committed May 21, 2014
1 parent f1ae8ba commit 784c1d34cc5c79e759f7b272e48732523d605e91
Showing with 1 addition and 1 deletion.
  1. +1 −1 feedwordpress.php
View
@@ -1415,7 +1415,7 @@ public function redirect_retired () {
} /* FeedWordPress::redirect_retired () */
public function row_actions ($actions, $post) {
if (is_syndicated($post->ID)) :
if (is_syndicated($post->ID) && current_user_can('edit_post', $post->ID)) :
$link = get_delete_post_link($post->ID, '', true);
$link = MyPHP::url($link, array("fwp_post_delete" => "nuke"));

0 comments on commit 784c1d3

Please sign in to comment.