mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added missing translation in admin_ug_auth (#861)
This commit is contained in:
parent
597c192cc4
commit
ad38225f2b
2 changed files with 4 additions and 2 deletions
|
@ -73,7 +73,7 @@ if ($submit && $mode == 'user') {
|
|||
if (isset($_POST['userlevel'])) {
|
||||
if ($_POST['userlevel'] === 'admin') {
|
||||
if ($userdata['user_id'] == $user_id || $user_id == GUEST_UID || $user_id == BOT_UID) {
|
||||
bb_die('Could not update admin status');
|
||||
bb_die($lang['AUTH_GENERAL_ERROR']);
|
||||
}
|
||||
|
||||
DB()->query('UPDATE ' . BB_USERS . ' SET user_level = ' . ADMIN . " WHERE user_id = $user_id");
|
||||
|
@ -90,7 +90,7 @@ if ($submit && $mode == 'user') {
|
|||
elseif ($_POST['userlevel'] === 'user') {
|
||||
// ignore if you're trying to change yourself from an admin to user!
|
||||
if ($userdata['user_id'] == $user_id) {
|
||||
bb_die('Could not update admin status<br /><br />Could not change yourself from an admin to user');
|
||||
bb_die($lang['AUTH_SELF_ERROR']);
|
||||
}
|
||||
// Update users level, reset to USER
|
||||
DB()->query('UPDATE ' . BB_USERS . ' SET user_level = ' . USER . " WHERE user_id = $user_id");
|
||||
|
|
|
@ -1719,6 +1719,8 @@ $lang['USER_AUTH_UPDATED'] = 'User permissions have been updated';
|
|||
$lang['GROUP_AUTH_UPDATED'] = 'Group permissions have been updated';
|
||||
|
||||
$lang['AUTH_UPDATED'] = 'Permissions have been updated';
|
||||
$lang['AUTH_GENERAL_ERROR'] = 'Could not update admin status';
|
||||
$lang['AUTH_SELF_ERROR'] = 'Could not change yourself from an admin to user';
|
||||
$lang['CLICK_RETURN_USERAUTH'] = 'Click %sHere%s to return to User Permissions';
|
||||
$lang['CLICK_RETURN_GROUPAUTH'] = 'Click %sHere%s to return to Group Permissions';
|
||||
$lang['CLICK_RETURN_FORUMAUTH'] = 'Click %sHere%s to return to Forum Permissions';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue