mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2025-01-11 07:27:58 +00:00
fix user auto-approve on magnet approve
This commit is contained in:
parent
a915c2e485
commit
3e9ec79fac
@ -194,12 +194,6 @@ else {
|
|||||||
// Update form
|
// Update form
|
||||||
if (!empty($_POST)) {
|
if (!empty($_POST)) {
|
||||||
|
|
||||||
// Approve by approved user
|
|
||||||
if ($user->approved)
|
|
||||||
{
|
|
||||||
$db->updateMagnetApproved($magnet->magnetId, true, time());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Approve by moderation request
|
// Approve by moderation request
|
||||||
if (in_array($user->address, MODERATOR_IP_LIST))
|
if (in_array($user->address, MODERATOR_IP_LIST))
|
||||||
{
|
{
|
||||||
@ -212,10 +206,10 @@ else {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set default approve status
|
// Approve by user approved status
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$db->updateMagnetApproved($magnet->magnetId, MAGNET_DEFAULT_APPROVED, time());
|
$db->updateMagnetApproved($magnet->magnetId, (bool) $user->approved, time());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Meta
|
// Meta
|
||||||
|
Loading…
Reference in New Issue
Block a user