aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:49:54 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:49:54 +0000
commit5003371ec531296d6aa60156b16199df33395bdf (patch)
treed2741ab131630fdff04b40d4ea9899d45f191843 /mod/reportedcontent
parent38f3674095d16bfb73320eb2e0b566ad4484882d (diff)
downloadelgg-5003371ec531296d6aa60156b16199df33395bdf.tar.gz
elgg-5003371ec531296d6aa60156b16199df33395bdf.tar.bz2
Refs #2451: Removes (admin_)gatekeeper() calls from core plugin actions
git-svn-id: http://code.elgg.org/elgg/trunk@7434 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/reportedcontent')
-rw-r--r--mod/reportedcontent/actions/archive.php3
-rw-r--r--mod/reportedcontent/actions/delete.php3
-rw-r--r--mod/reportedcontent/start.php4
3 files changed, 2 insertions, 8 deletions
diff --git a/mod/reportedcontent/actions/archive.php b/mod/reportedcontent/actions/archive.php
index 231ebdd35..c0169fa28 100644
--- a/mod/reportedcontent/actions/archive.php
+++ b/mod/reportedcontent/actions/archive.php
@@ -5,9 +5,6 @@
* @package ElggReportedContent
*/
-// Make sure we're logged in and are admin
-admin_gatekeeper();
-
// Get input data
$guid = (int) get_input('item');
diff --git a/mod/reportedcontent/actions/delete.php b/mod/reportedcontent/actions/delete.php
index fa10c6d7e..b7d6fdaa5 100644
--- a/mod/reportedcontent/actions/delete.php
+++ b/mod/reportedcontent/actions/delete.php
@@ -5,9 +5,6 @@
* @package ElggReportedCOntent
*/
-// Make sure we're logged in and are admin
-admin_gatekeeper();
-
// Get input data
$guid = (int) get_input('item');
diff --git a/mod/reportedcontent/start.php b/mod/reportedcontent/start.php
index ed7eedd4f..09ab71406 100644
--- a/mod/reportedcontent/start.php
+++ b/mod/reportedcontent/start.php
@@ -25,8 +25,8 @@ function reportedcontent_init() {
//register action
elgg_register_action('reportedcontent/add', "{$CONFIG->pluginspath}reportedcontent/actions/add.php");
- elgg_register_action('reportedcontent/delete', "{$CONFIG->pluginspath}reportedcontent/actions/delete.php");
- elgg_register_action('reportedcontent/archive', "{$CONFIG->pluginspath}reportedcontent/actions/archive.php");
+ elgg_register_action('reportedcontent/delete', "{$CONFIG->pluginspath}reportedcontent/actions/delete.php", 'admin');
+ elgg_register_action('reportedcontent/archive', "{$CONFIG->pluginspath}reportedcontent/actions/archive.php", 'admin');
}
// Initialise Reported Content