diff --git a/mod.php b/mod.php
index 56f90a79..71053d23 100644
--- a/mod.php
+++ b/mod.php
@@ -147,6 +147,8 @@
}
if(hasPermission($config['mod']['manageusers'])) {
$fieldset['Administration'] .= '
' . _('Manage users') . '';
+ } elseif(hasPermission($config['mod']['change_password'])) {
+ $fieldset['Administration'] .= '' . _('Change own password') . '';
}
if(hasPermission($config['mod']['modlog'])) {
$fieldset['Administration'] .= '' . _('Moderation log') . '';
@@ -1243,7 +1245,10 @@
setCookies();
}
- header('Location: ?/users', true, $config['redirect_http']);
+ if(hasPermission($config['mod']['manageusers']))
+ header('Location: ?/users', true, $config['redirect_http']);
+ else
+ header('Location: ?/', true, $config['redirect_http']);
exit;
}