Skip to content

[Bug]: "Open locally" shown for file in share without "download and sync" permission #54970

@provokateurin

Description

@provokateurin

⚠️ This issue respects the following points: ⚠️

Bug description

The share recipient in a share without "download and sync" permission will still see a menu entry "Open locally".
Using this feature will not work, since downloading and syncing is not possible due to the permissions.
So it's mostly a visual bug and might lead to user confusion, but there is no circumvention of the permissions.

Steps to reproduce

  1. User A creates a share for a folder without the "download and sync" permission
  2. User A adds a text/markdown/office file
  3. User B opens the folder and sees the "Open locally" menu entry offered on the file

Expected behavior

The menu entry should not be shown on a share lacking the "download and sync" permission.

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions