From 5003371ec531296d6aa60156b16199df33395bdf Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 24 Nov 2010 01:49:54 +0000 Subject: 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 --- mod/reportedcontent/actions/archive.php | 3 --- mod/reportedcontent/actions/delete.php | 3 --- mod/reportedcontent/start.php | 4 ++-- 3 files changed, 2 insertions(+), 8 deletions(-) (limited to 'mod/reportedcontent') 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 -- cgit v1.2.3