Skip to content

Permission depends on the way of entering folders #12578

Closed

Description

@scroom

Steps to reproduce

  1. Create a folder with some subfolder
  2. Share the top-folder with only read-access
  3. Share the subfolder with write access
  4. If users enter the subfolder directly out of their start-view, they can write to the subfolder, if they first open the top-folder and then the subfolder, they can't write to the folder

Expected behaviour

Allow the user to write even if they open the subfolder after the topfolder

Actual behaviour

see above

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: MySQL

PHP version: 7.2

Nextcloud version: 14.0.1

Updated from an older Nextcloud/ownCloud or fresh install: fresh

Activity

  1. nextcloud-bot commented on Nov 22, 2018

    @nextcloud-bot
    Member

    GitMate.io thinks possibly related issues are #7588 (Folder permissions), #8479 (Simplify sharing permissions for folders), #11717 (NotPermittedException: No create permission for folder), #8931 (external folder can not be shared with delete permissions), and #2268 (Users can delete shared folders without permissions).

  2. violoncelloCH commented on Nov 22, 2018

    @violoncelloCH
    Member

    I would suggest to not allow a file/folder which is inside an already shared folder to be shared to the same recipient a second time. But it would be usefull to let the owner "upgrade" the permission for a subfolder/file.
    What do you think @nextcloud/sharing @nextcloud/designers ?

  3. schlagi123 commented on Nov 24, 2018

    @schlagi123

    I think this is an impotent feature to upgrade the permissions in a shared fordert, to create finer permissions. It could be created like ACLs in filesystems. This were a more flexible system for permissions.

  4. violoncelloCH commented on Nov 30, 2018

    @violoncelloCH
    Member

    As discussed with @juliushaertl a possible way of doing this could be to check for a (new) share if there already exists a parent share to the same recipient and then only upgrading the permissions for this folder/file (inside the parent share) instead of creating a new share which shows up in the recipients root. What do you think @rullzer @schiessle? Would this be possible?

  5. jancborchardt commented on Dec 4, 2018

    @jancborchardt
    Member

    Is it necessary to rethink the way we do sharing? Wouldn’t it just be possible for Nextcloud to get "ah, now the person is in the subfolder, where they have write access to"?

    Ideally nothing should change for people in the interface. This is a clear case of "it should just work as expected". :)

  6. violoncelloCH commented on Dec 4, 2018

    @violoncelloCH
    Member

    @jancborchardt yes, that's exactly the idea! The only thing to consider, I think, is if this shared subfolder should be visible in the recievers root directory (like a separate share) or not...?

  7. schiessle commented on Dec 4, 2018

    @schiessle
    Member

    Is it necessary to rethink the way we do sharing? Wouldn’t it just be possible for Nextcloud to get "ah, now the person is in the subfolder, where they have write access to"?

    Yes, it would be possible, and yes it would be rethinking the way sharing works today 😉
    But there are good chance that with Nextcloud 16 we will be able to solve it.

  8. added this to the Nextcloud 16 milestone on Dec 21, 2018
  9. removed this from the Nextcloud 17 milestone on Sep 26, 2019
  10. 42 remaining items

  11. shu0406 commented on Jan 9, 2023

    @shu0406
  12. szaimen commented on Jan 9, 2023

    @szaimen
  13. shu0406 commented on Jan 9, 2023

    @shu0406
  14. shu0406 commented on Mar 6, 2023

    @shu0406
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions