Skip to content
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

Fix nested resource check for publicly shared space root #4632

Merged
merged 2 commits into from
Apr 16, 2024

Commits on Apr 15, 2024

  1. Add utils.IsSpaceRoot

    Get rid of some duplication by moving the isSpaceRoot function to the utils package.
    rhafer committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    ea8ee61 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Fix nested resource check for publicly shared space root

    The 'Path' returned as part of the ResourceInfo from a Stat call might
    be relative. So we need to Use 'GetPath()' to lookup the full path of
    the parent. Otherwise the simple 'HasPrefix' check for whether a file a
    ancestor might fail.
    
    Co-Authored-By: Christian Richter <crichter@owncloud.com>
    rhafer and dragonchaser committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    3919a3e View commit details
    Browse the repository at this point in the history