prevent admin hijacks
This commit is contained in:
parent
45c1559b38
commit
bb0c24bd4f
3 changed files with 10 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue