Hi,

The context is:

I am using "Web File Manager" module to let users view/upload files(PDF/doc/...) by different roles. Then, I want to use "search_files.module" to search those files with the same access control. e.g.

role A, can view/upload files to root_dir/folder_a
role B, can view/upload files to root_dir/folder_b
So, the user with role A can search files inside root_dir/folder_a, but not root_dir/folder_b.

Is there any configuration of search_files.module to archive this feature?

Thanks.

Comments

schildi’s picture

projects "search files" and "search attachments" are in the process of being merged. As a result probably "search attachments" feature to respect access controls will be part of the new module.

mwsxh’s picture

Thank you, schildi.

It's very inspiring to hear that. Could you share the release plan of this feature?

schildi’s picture

Sorry, I am not the maintainer of the project. Probably jrglasgow or lee20 have already set up some release plan.
Alternatively you can have a look at the actual sources in CVS. May be your feature is already merged from search_attachments.

Regards

leszek.hanusz’s picture

Subscribing

lee20’s picture

Status: Active » Needs work

Is there any configuration of search_files.module to archive (achieve) this feature?

Currently, there is nothing more than a single permission which permits searching files. You have a very cool idea and I think this feature would be a great addition to the module.

I started adding in the functionality but have to leave off with the remaining items todo before it is functional:

  1. Adjust module.install to add column(s) to the database to store "access" preferences.
  2. Implement "access" form validation and handling for adding and editing directories.

I am not sure when I will get back to it, but if you are interested in polishing this up let me know and I'll get you an up to date patch.

thl’s picture

Assigned: Unassigned » lee20