Skip to content

Comments

(Fix) Lifetime donor download slot check#5272

Open
thatonePRguy wants to merge 1 commit intoHDInnovations:developmentfrom
thatonePRguy:fix/lifetime-donor-download-slots
Open

(Fix) Lifetime donor download slot check#5272
thatonePRguy wants to merge 1 commit intoHDInnovations:developmentfrom
thatonePRguy:fix/lifetime-donor-download-slots

Conversation

@thatonePRguy
Copy link

This PR adjusts the Lifetime Donor download slot limit enforcement criteria. The existing check enforces the download slot limit on lifetime donors whenever their assigned group has a non-null download_slots value, due to the || condition in the if block.

Based upon the verbiage in the lifetime donor blade, I do not believe this is the expected behavior. See donation/index.blade.php#L48.

Removing $user->group->download_slots !== null from the if block defers the evaluation of slot limits for all non-lifetime donors when the slot system is enabled to the checkDownloadSlots func which already gracefully handles null and non null slot limits.

This PR adjusts the Lifetime Donor download slot limit enforcement criteria. The existing check enforces the download slot limit on lifetime donors whenever their assigned group has a non-null download_slots value, due to the || condition in the if block.

Based upon the verbiage in the lifetime donor blade, I do not believe this is the expected behavior. See [donation/index.blade.php#L48](https://github.com/HDInnovations/UNIT3D/blob/8b88f4c8182eb3d3912ffef425c3224dcfd596f4/resources/views/donation/index.blade.php#L48).

Removing `$user->group->download_slots !== null` from the if block defers the evaluation of slot limits for all non-lifetime donors when the slot system is enabled to the checkDownloadSlots func which already gracefully handles null and non null slot limits.
@what-the-diff
Copy link

what-the-diff bot commented Feb 13, 2026

PR Summary

  • Refined Application Decision-Making
    The way the application decides to use download slots has been simplified. It now relies only on the user's membership status and if the slots system has been enabled. Previously, it used to also factor in the total download slots in a group which complicated the process.

@Roardom
Copy link
Collaborator

Roardom commented Feb 16, 2026

This would allow any donor to very easily do a full peer scrape of the entire tracker. Not very secure?

@thatonePRguy
Copy link
Author

This would allow any donor to very easily do a full peer scrape of the entire tracker. Not very secure?

I don't disagree, but my interpretation of the existing code is that is the intended behavior? If you or @HDVinnie would be open to altering the verbiage of the donor advertisement to something along the lines of "Increased download slots" and a preference for how "increased" should be handled, I would be happy to modify the PR accordingly.

If you have any other preferred approach I'd be happy to discuss further as well. Cheers

@Roardom
Copy link
Collaborator

Roardom commented Feb 17, 2026

I would personally prefer removing everything related to donations, but that would be vinnie's decision. Seeing as this "perk" was never implemented, I think removing it from the verbiage would work better than additionally adding it so late now. Up to vinnie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants