-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
user trying to delete personal folder results in deletion of EVERYTHING but his folder #1561
Comments
I fear I need to give more information. I I click my personal foler, then delete folder, then not opening the combo box and leave it as is, submiting will delete everything in the database. Is I create a test folder, ad an entry, remove delete permissions form my user and redo the above, it still deletes the folder. If I create a new folder, add an entry to it and make sure the user can only view and not delete (with roles), performing the above will delete everything again... Same goes for hidden folders. They get deleted too even if the user HAS not a clue they even exist. This is true with a local and ldap user. totally deactivated ldap to check... |
this seems to be a duplicate of #1347 Why has a bug with such grave implications has not been solved yet? |
More research... If option to manage subfolders when ability to manage folder is enabled, this situation is present. If removed option and create folder structure where user is able to manage 1 single folder in the tree, issue is present. This is a major inconvenience. |
I discover this now. And I confirm this bug. I will provide a patch for this as soon as I can |
In file items.load.php Search for
replace by
And In file sources/folder.queries.php Search for
replace by
|
Steps to reproduce
Expected behaviour
delete user's personnal folder
Actual behaviour
everything gets deleted
Server configuration
rhel 7.2
Web server:
apache 2.4
Database:
mysql
PHP version:
7
Teampass version:
latest release version 2 with manual #1551 fix
Updated from an older Teampass or fresh install:.
fresdh
Client configuration
all
Operating system:
all
The text was updated successfully, but these errors were encountered: