Comments (3)
Could you please double check your finding? Especially that:
- users have may_upload=0
- users do not have upload rights to root directory
- users do not have edit rights to shared directory
Lychee/app/Http/Requests/Photo/AddPhotoRequest.php
Lines 13 to 16 in 57e3503
Ensures the Authorization.
This calls the policy:
Lychee/app/Policies/AlbumPolicy.php
Lines 223 to 236 in 57e3503
I don't see any error in the code or I am missing an edge case.
Only thing I could think of is that the token would be giving admin perm instead of user perm which would be seriously worrisome.
from lychee.
from lychee.
Hope this helps,
A LOT!
By creating the album the user get ownership, and as a result uploads rights:
$this->isOwner($user, $album)
Hummmm.
from lychee.
Related Issues (20)
- Newly user created album should be opened on create in admin owned album HOT 1
- Ability To Add Templated and Also Custom Notes Information Associated With An Image - Print Sizes Available (etc)
- can't load no_images.svg HOT 7
- Directories with '[' symbols cannot be imported
- Cannot upload images HOT 3
- Share Button does not get disabled using share_button_visible 1/0
- Image selecting does not work on chrome + MacOS HOT 4
- HTTP Exception 500: "CC-BY" is not a valid backing value for enum App\Enum\LicenseType (View: /var/www/html/Lychee/resources/views/livewire/pages/gallery/album.blade.php) HOT 1
- Missing tools on desktop browser
- Overflow in the details panel HOT 1
- [5.2.0] Maps on image detail is not updated when switching left right.
- #2392 recurring in Lychee 5.2.2 ("CC-BY-SA" is not a valid backing value for enum) HOT 1
- If you can read me, it means that you misconfigured Lychee. HOT 6
- Inverted date on album tiles with multiple months HOT 1
- [5.3.0] Clean installation without error but image is not showing... again HOT 1
- `additional_footer_text` not displayed
- Can not move photos into album containing apostrophe in title
- File-Suffixes duplicated in Downloaded Album HOT 2
- Sharing - Select all users HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lychee.