diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-30 11:19:30 +0200 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-04-05 13:58:49 +0000 |
commit | 916fbe81c6baabb59e7d5444cbc04bf696f679df (patch) | |
tree | f44593c9ae817aac0f56ccbcc4e8121ddb6dc32c /lib/private/Files/ObjectStore | |
parent | 40f6f602324e663b2e41dd4d7b5b947e55f4077b (diff) | |
download | nextcloud-server-916fbe81c6baabb59e7d5444cbc04bf696f679df.tar.gz nextcloud-server-916fbe81c6baabb59e7d5444cbc04bf696f679df.zip |
Fix incorrect if conditions in View
($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>
Diffstat (limited to 'lib/private/Files/ObjectStore')
0 files changed, 0 insertions, 0 deletions