Skip to content
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

Request: Option for admins to bypass file size/TTL #412

Closed
Cubox opened this issue Jan 29, 2022 · 4 comments
Closed

Request: Option for admins to bypass file size/TTL #412

Cubox opened this issue Jan 29, 2022 · 4 comments

Comments

@Cubox
Copy link
Contributor

Cubox commented Jan 29, 2022

Hi,

I'd like to keep my plik instance open to anyone, but with limited TTL and size, while allowing myself (admin) to send anything and keep it for as long as I like
An option that would allow either to have different limits for an user and admin, or simply to let admins bypass all limits would be great.
Since there are many places in the code (server/js) where this is checked, any PR I try to make will be quite poor quality.
Or maybe the possibility to set TTL/file size limits per user.

@camathieu
Copy link
Member

Logic for that feature is ready to ship.

https://github.com/root-gg/plik/tree/user_limits

But we have to fix the SQL migrations for older versions of Plik (Database created with GormV1) first.

@camathieu camathieu added this to the 1.3.6 milestone Jan 29, 2022
@camathieu
Copy link
Member

camathieu commented Jan 31, 2022

#415 Introduce SQL migrations

@camathieu
Copy link
Member

camathieu commented Apr 9, 2022

Feature has been implemented in :
11b275e
be8915d
Ready for 1.3.6

@camathieu camathieu added the done label May 16, 2022
@camathieu
Copy link
Member

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

No branches or pull requests

2 participants