-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Download button is visible and does not support download rights yet. (backend is fine). #1720
Comments
Demo page is outdated.
Which means that it is a bug in the front-end. BTW you don't really need the password if you are already hidden. The Given that the backend is still blocking and working as expected I would consider this as Low priority. |
Thanks. Yes I tested that as well and picture download isn't possible too. As the album download works either way I am also fine with "low priority" 🤭 |
I forgot to say, thank you for the comprehensive tests and detailed report. Very much appreciated. ❤️ |
You are welcome! Short comment on your changed title: this is not fully reflecting the issue. The Download button is shown when it should not be and is missing when it should be shown. Looks like a simple reverse in the if-logic. Unfortunately I was not able to dig into the code that quicky to understand where I would find this logic. |
photo/album should now have an array rights which has the attribute https://github.com/LycheeOrg/Lychee-front/blob/master/scripts/main/header.js#L295 |
https://github.com/LycheeOrg/Lychee-front/blob/master/scripts/main/contextMenu.js#L510 I think there is a typo: |
No, |
Ok, understood. Still I have the issue not being able to easily create a test enviroment (I just don't have the time 😮) to change the code and run the changed frontend to test it myself. Otherwise I already would have done a PR 😀 |
There is no hurry, we are all under time pressure. :) |
I will exercise in my patience then 🙏 |
FYI we are talking about months before #1303 is merged. 😅
|
Short feedback: works as intended with 4.7.1 dev 👍
|
Detailed description of the problem [REQUIRED]
Hi,
yesterday I installed lychee 4.7.0 using the official docker container, so this is basically my docker-compose file:
So with that lychee is perfectly fine reachable via my private URL or locally directly connected to the server (http://<fancy IP>:90) and working as authenticated user (either admin or standard user) looks also fine.
As my intention is to use this a way to provide access to specific albums to people without them having an account but still don't want to have the pictures fully publicly exposed to the internet I want to achieve this by the following anonymous settings for my test album:
Accessing the album without user looks good in the first place:
Downloading the full album works also as intented (I tried the download and it works):
Now I want the anon-user also to be able to download only specific pictures in different sizes (as set per user settings above), but selecting a picture does not show the three dots in the right to download a picture:
Interestingly if I change the anon-settings to a wrong state:
the anon-user should not be able to see the three dots or to download the picture, but:
now he sees the three dots and is also able to click on the different sizes:
luckily the permissions are still fine:
I checked your demo page and there it seems to be all right. So did I do something wrong in my docker setup or in the configuration?
Steps to reproduce the issue
Steps to reproduce the behavior:
See the detailed description above, it contains my steps.
Screenshots
See the screenshots above.
Output of the diagnostics [REQUIRED]
Browser and system
Windows 10, Firefox, Edge, Chrome (tested with them all)
The text was updated successfully, but these errors were encountered: