Skip to content

Commit

Permalink
Fix problems with permisions
Browse files Browse the repository at this point in the history
  • Loading branch information
hunk committed Jul 12, 2010
1 parent 805a47e commit 231a8e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 3 additions & 2 deletions RCCWP_GetDuplicate.php
@@ -1,8 +1,9 @@
<?php <?php
require( dirname(__FILE__) . '/../../../wp-load.php' ); require( dirname(__FILE__) . '/../../../wp-load.php' );
global $mf_domain; global $mf_domain;
if (!(is_user_logged_in() && current_user_can('edit_posts'))) if (!(is_user_logged_in() &&
die(__('Athentication failed!',$mf_domain)); (current_user_can('edit_posts') || current_user_can('edit_published_pages'))))
die(__("Athentication failed!",$mf_domain));


require_once("RCCWP_WritePostPage.php"); require_once("RCCWP_WritePostPage.php");
require_once("RCCWP_CustomGroup.php"); require_once("RCCWP_CustomGroup.php");
Expand Down
7 changes: 3 additions & 4 deletions RCCWP_removeFiles.php
Expand Up @@ -4,10 +4,9 @@


//check if the user is logged in //check if the user is logged in
global $mf_domain; global $mf_domain;
if(!(is_user_logged_in() && current_user_can('edit_posts'))){ if(!(is_user_logged_in() &&
die(__('Authentication failed!',$mf_domain)); (current_user_can('edit_posts') || current_user_can('edit_published_pages'))))
}; die(__("Athentication failed!",$mf_domain));



if(empty($_GET['action'])){ if(empty($_GET['action'])){
exit(); exit();
Expand Down

0 comments on commit 231a8e4

Please sign in to comment.