Skip to content

Disable shares for deactivated users #31444

Closed

Description

@alx-tuilmenau

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.
Implemented in #17077, share links are disabled for deactivated users. In my opinion, this should also happen with normal shares to other users. At the moment, a shared folder of a disabled user is still accessable by others.

Describe the solution you'd like
If a user is deactivated, shares from this user should no longer be visible / accesable for others.

Describe alternatives you've considered
I didn't found an easy way of deactivate shares of a user. My (ugly) solution is to backing up oc_share of this user in a table with same schema insert into my_share_backup select * from oc_share where uid_owner='userid'; and setting permissions in oc_share to 0 update oc_share set permissions=0 where uid_owner='userid', restore data on re-activation of user.

Additional context
We need this for 2 reasons:
First, if deactivating someone because auf violation of TOS, noone should be able to change or access the users data.
Second, if accounts expire, they are deactivated but not removed for a grace period. During this time also the data should not be accessable through other accounts.

(Using NC 22.2.5)

Activity

  1. added
    0. Needs triage
    on Mar 4, 2022
  2. changed the title [-]Disables shares for deactivated users[/-] [+]Disable shares for deactivated users[/+] on Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triageenhancementfeature: sharing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions