Skip to content

[Request] revoking download privileges on the account page #4481

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Thamage opened this issue Feb 15, 2025 · 5 comments
Open

[Request] revoking download privileges on the account page #4481

Thamage opened this issue Feb 15, 2025 · 5 comments
Labels

Comments

@Thamage
Copy link

Thamage commented Feb 15, 2025

Profile should have a option to override download privileges on the ID's and permissions panel for worst cases of bad seeding habits to force communication with a user.

Image

@mkptheCapt
Copy link

+++

@Roardom
Copy link
Collaborator

Roardom commented Mar 3, 2025

To provide insight on this issue and why it's complicated to fix, it's because the can_download permission is actually saved as a single boolean, yet it's a mix of multiple conditions such as:

  • has_reached_warning_limit
  • has_required_ratio
  • is_banned
  • is_enabled
  • is_pruned
  • can_announce

And it also disables download permissions on regular files too, like .torrent files and subtitle files.

So obviously, when you override the can_announce value, you don't want to be changing the other values. The solution is therefore to have different values for each condition instead of combining them all, otherwise different cron jobs will continually overwrite the value provided.

@mkptheCapt
Copy link

thanks for your reply Roardom.
Actually I just need to disable only "download .torrent files" permission for selected (edited) user.
how can we do this?

best wishes

@Roardom
Copy link
Collaborator

Roardom commented Mar 4, 2025

As explained above, that is not possible because of the way the logic currently works.

@mkptheCapt
Copy link

thanks, have a nice day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants