Conversation
|
Could you add a bit more info in the commit message about what this fix and why the previous code was incorrect? |
adf4bc1 to
dcd2a68
Compare
Done. |
CarlSchwan
left a comment
There was a problem hiding this comment.
This probably only make a difference when you can't read a file but still have permission to do other stuff (file drop)
|
Could we take the opportunity to exit early on this condition instead of wrapping 100 lines into the if: https://github.com/nextcloud/server/blob/dcd2a6841e9f1f111f74c9f6006c3821bfb12e3d/lib/private/Files/View.php#L1446= |
Done |
|
/rebase |
|
/backport to stable23 |
|
/backport to stable22 |
($something->getPermissions() && Constants::PERMISSION_READ) does not make sense as PERMISSION_READ contant is 1 this will always evaluate to true. getPersmissions is returning an int which is a bitwise combination as documented in the interface, so it should be used with bit operators. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
be6c7ba to
d36a1a7
Compare
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
|
The backport to stable23 failed. Please do this backport manually. |
|
The backport to stable22 failed. Please do this backport manually. |
|
/backport to stable23 |
|
/backport to stable22 |
|
The backport to stable22 failed. Please do this backport manually. |
|
The backport to stable23 failed. Please do this backport manually. |
Signed-off-by: Côme Chilliet come.chilliet@nextcloud.com