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

Updating relay settings type to allow for filtering through relay set… #34

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

Maphikza
Copy link
Member

…tings for leaf file types.

The IsFilePermitted function will make our panel settings effective in the relay. We can apply it on our upload functions.

@f7f376a1fcd0d0e11a10ed1b6577c9
Copy link
Member

Just an initial thought so I don't forget later but I believe this would be best implemented into the canUpload function of the upload handler or something along these lines as it would need to directly deny the upload if the relay doesn't allow it, this can't be done in the database code as it would be too late (we wouldn't want someone to upload an entire file just to have it rejected after).

I will take care of the implementation in a bit, thanks for making this part @Maphikza, makes my life a lot easier.

@f7f376a1fcd0d0e11a10ed1b6577c9
Copy link
Member

Leaving this here for the moment but it's actually been made redundant by some of my recent changes

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