Is is possible to add the ability for an authorized user to delete files from a directory listing?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | filebrowser.549634.patch | 338 bytes | clivesj |
Is is possible to add the ability for an authorized user to delete files from a directory listing?
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | filebrowser.549634.patch | 338 bytes | clivesj |
Comments
Comment #1
fabrizioprocopio commented+1
Comment #2
Yoran commentedThis is in last (next) dev.
Comment #4
kvoltz commentedHi,
This feature - while available, does not seem to be working. Has anyone had any luck with this?
Comment #5
jleroi commentedThanks Yoran!
Haven't tried yet kvoltz. I'll test it out.
Comment #6
Nicolas Georget commentedI have a "Access denied" when a user is authenticate && authorized to delete a file/folder. But a success with the user->uid = 1
example.com/filebrowser/delete/10701?destination=/dir-list/testI used the dev-version as Yoran mentioned in #2
Comment #7
clivesj commentedHook_menu is not using the proper constant for the file delete callback.
It is using FILEBROWSER_DELETE i.s.0 FILEBROWSER_DELETE_FILE.
You can change this in line 427:
Remember to clear cache menu.
Here´s a patch (against the latest dev -so with the other issues still not corrected)
If it works OK, can you set the status to RTBC? Thanks
Comment #8
Nicolas Georget commentedWell done !!
Comment #9
Yoran commentedthanks clivesj :) It'll be in next dev.