Project:Filebrowser
Version:6.x-2.x-dev
Component:Directory Listing Pages
Category:bug report
Priority:major
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Is is possible to add the ability for an authorized user to delete files from a directory listing?

Comments

#1

+1

#2

Status:active» fixed

This is in last (next) dev.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#4

Priority:normal» major

Hi,

This feature - while available, does not seem to be working. Has anyone had any luck with this?

#5

Thanks Yoran!

Haven't tried yet kvoltz. I'll test it out.

#6

Version:6.x-2.0-rc9» 6.x-2.x-dev
Category:feature request» bug report
Status:closed (fixed)» active

I 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/test

I used the dev-version as Yoran mentioned in #2

#7

Hook_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:

      'type' => MENU_CALLBACK,
      'access arguments' => array(
          FILEBROWSER_DELETE_FILE

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

AttachmentSize
filebrowser.549634.patch 338 bytes

#8

Status:active» reviewed & tested by the community

Well done !!

#9

Status:reviewed & tested by the community» fixed

thanks clivesj :) It'll be in next dev.

#10

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.