Improvements to new mod panel
This commit is contained in:
parent
64f7e70d29
commit
2c1f14d24b
@ -508,7 +508,7 @@ function mod_user($uid) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasPermission($config['dmod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) {
|
||||
if (hasPermission($config['mod']['change_password']) && $uid == $mod['id'] && isset($_POST['password'])) {
|
||||
if ($_POST['password'] != '') {
|
||||
$query = prepare('UPDATE `mods` SET `password` = SHA1(:password) WHERE `id` = :id');
|
||||
$query->bindValue(':id', $uid);
|
||||
|
@ -27,7 +27,7 @@
|
||||
<fieldset>
|
||||
<legend>{% trans 'Noticeboard' %}</legend>
|
||||
<ul>
|
||||
{% if noticeboard %}
|
||||
{% if noticeboard|count > 0 %}
|
||||
<li>
|
||||
{% trans 'Latest posts:' %}
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user