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

Confirm Deletion by Password-Entry #2911

Closed
xbluemonkx opened this issue Apr 5, 2024 · 2 comments
Closed

Confirm Deletion by Password-Entry #2911

xbluemonkx opened this issue Apr 5, 2024 · 2 comments
Labels
0. Needs triage Issues that need to be triaged enhancement

Comments

@xbluemonkx
Copy link

Hi,

everywhere in Nextcloud you have to confirm critical changes by entering your password. Even uncritical changes (e.g. adding a user to a group).

I think it would be good to have a password confirmation too if you want to delete a group folder.

@xbluemonkx xbluemonkx added 0. Needs triage Issues that need to be triaged enhancement labels Apr 5, 2024
@joshtrichards
Copy link
Member

joshtrichards commented Sep 9, 2024

This will be easier after #3140 since we can then just use the existing vue library: https://github.com/nextcloud-libraries/nextcloud-password-confirmation

deleteFolder(folder: Folder) {
OC.dialogs.confirm(
t('groupfolders', 'Are you sure you want to delete "{folderName}" and all files inside? This operation cannot be undone', { folderName: folder.mount_point }),
t('groupfolders', 'Delete "{folderName}"?', { folderName: folder.mount_point }),
confirmed => {
if (confirmed) {
this.setState({ folders: this.state.folders.filter(item => item.id !== folder.id) })
this.api.deleteFolder(folder.id)
}
},
true,
)
}

Even uncritical changes (e.g. adding a user to a group).

Well adding a user to the admin group would give them special privileges. ;-)

@provokateurin
Copy link
Member

Fixed in all recent releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged enhancement
Projects
None yet
Development

No branches or pull requests

3 participants