aboutsummaryrefslogtreecommitdiffstats
path: root/mod/regmod.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/regmod.php')
-rw-r--r--mod/regmod.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/regmod.php b/mod/regmod.php
index 772351ac5..eabbec090 100644
--- a/mod/regmod.php
+++ b/mod/regmod.php
@@ -12,6 +12,11 @@ function regmod_content(&$a) {
return $o;
}
+ if((! (x($a->config,'admin_email'))) || ($a->config['admin_email'] !== $a->user['email'])) {
+ notice( t('Permission denied.') . EOL);
+ return '';
+ }
+
if($a->argc != 3)
killme();