aboutsummaryrefslogtreecommitdiff
path: root/mod/reportedcontent
diff options
context:
space:
mode:
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