diff options
-rw-r--r-- | inc/actions.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/actions.php b/inc/actions.php index c195ecf26..e1576c179 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -199,6 +199,12 @@ function act_permcheck($act){ }else{ $permneed = AUTH_ADMIN; } + }elseif($act == 'resendpwd'){ + if ($conf['resendpasswd']) { + $permneed = AUTH_NONE; + }else{ + $permneed = AUTH_ADMIN+1; // shouldn't get here if $conf['resendpasswd'] is off + } }elseif($act == 'admin'){ $permneed = AUTH_ADMIN; }else{ |