mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 02:20:54 +08:00
fix remove claim
This commit is contained in:
@@ -77,7 +77,7 @@ class ClaimRepository extends BaseRepository
|
||||
public function delete($id, $uid)
|
||||
{
|
||||
$isEnabled = Claim::getConfigIsEnabled();
|
||||
if ($isEnabled) {
|
||||
if (!$isEnabled) {
|
||||
throw new \RuntimeException(nexus_trans("torrent.claim_disabled"));
|
||||
}
|
||||
$model = Claim::query()->findOrFail($id);
|
||||
|
||||
Reference in New Issue
Block a user