Permalink
Browse files

Fix problems with permisions

  • Loading branch information...
1 parent 805a47e commit 231a8e4a59635f64ab4cecb1aa8a60aefcd4f91f @hunk committed Jul 12, 2010
Showing with 6 additions and 6 deletions.
  1. +3 −2 RCCWP_GetDuplicate.php
  2. +3 −4 RCCWP_removeFiles.php
View
@@ -1,8 +1,9 @@
<?php
require( dirname(__FILE__) . '/../../../wp-load.php' );
global $mf_domain;
-if (!(is_user_logged_in() && current_user_can('edit_posts')))
- die(__('Athentication failed!',$mf_domain));
+if (!(is_user_logged_in() &&
+ (current_user_can('edit_posts') || current_user_can('edit_published_pages'))))
+ die(__("Athentication failed!",$mf_domain));
require_once("RCCWP_WritePostPage.php");
require_once("RCCWP_CustomGroup.php");
View
@@ -4,10 +4,9 @@
//check if the user is logged in
global $mf_domain;
-if(!(is_user_logged_in() && current_user_can('edit_posts'))){
- die(__('Authentication failed!',$mf_domain));
-};
-
+if(!(is_user_logged_in() &&
+ (current_user_can('edit_posts') || current_user_can('edit_published_pages'))))
+ die(__("Athentication failed!",$mf_domain));
if(empty($_GET['action'])){
exit();

0 comments on commit 231a8e4

Please sign in to comment.