mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
fix listUserClassPermissions()
This commit is contained in:
+1
-2
@@ -352,8 +352,7 @@ if ($action == "edituser")
|
||||
if (!empty($banLog)) {
|
||||
\App\Models\UserBanLog::query()->insert($banLog);
|
||||
}
|
||||
\Nexus\Database\NexusDB::cache_del("user_{$userid}_content");
|
||||
\Nexus\Database\NexusDB::cache_del('user_passkey_'.$userInfo->passkey.'_content');
|
||||
clear_user_cache($userid, $userInfo->passkey);
|
||||
$returnto = htmlspecialchars($_POST["returnto"]);
|
||||
header("Location: " . get_protocol_prefix() . "$BASEURL/$returnto");
|
||||
die;
|
||||
|
||||
@@ -35,6 +35,7 @@ sql_query("INSERT INTO staffmessages (sender, added, msg, subject) VALUES($useri
|
||||
sql_query("UPDATE users SET last_staffmsg = NOW() WHERE id = ".sqlesc($CURUSER['id'])) or sqlerr(__FILE__, __LINE__);
|
||||
$Cache->delete_value('staff_message_count');
|
||||
$Cache->delete_value('staff_new_message_count');
|
||||
clear_staff_message_cache();
|
||||
if ($_POST["returnto"])
|
||||
{
|
||||
header("Location: " . htmlspecialchars($_POST["returnto"]));
|
||||
|
||||
Reference in New Issue
Block a user