Welcome,
Guest
|
|
Hello
I have indexed some files on my joomla installation, but I wonder if there is any way to restrict the file contents to registred people only. I mean some indexed file in a folder may be "public" (viewable by anyone) and another folder would be private (viewable by only registred people) I'm thinking of different folders for spliting public/private, but there may be another way ? Thanks Nabbo |
The administrator has disabled public write access.
|
|
For the moment there is no solution to your problem, certainly in the future we would like to integrate it.
|
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
|
Hi, and thanks for the reply.
I have found quick-and-dirty way of doing (more or less) what I want : assuming the fact that your "private" documents are in a folder named "private" : I have edited the file : plugins/search/jifile/jifile.php, and added at line 97 , after $pathD = jifilehelper::getCorrectFilename($doc->getFieldValue('path')); the following : $user =& JFactory::getUser();
if(!$user->id and preg_match('/.*\/private/',$pathD)) $pathD=false; it looks like it does what I want :
What do you think ? On your opinion, is there a security leak somehow if I do that ? Thanks |
The administrator has disabled public write access.
|
|
It 'a good solution, static, but I see no problems
|
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
The administrator has disabled public write access.
|
|
I was initially excited to find this solution but disappointed when I tried it. Non-registered users can still find documents for registered-only users and open them.
I changed "private" in the sample text to my documents folder. Is there something else that needs to be changed? JFactory is a mystery to me. Is that a plugin that needs to be installed too? Thanks for trying to fix this troublesome issue with an otherwise wonderful tool. |
The administrator has disabled public write access.
|
|
Hi,
we implemented a ACL feature in JiFile 2.0, but you can, simply, go to in Plugin Manager and set: "Search - Jifile" as "Registered" This image is hidden for guests. Please log in or register to see it. Now your document are searchable only for user Registrered and logged in your site. For your case, all user can search, and only Registrered user open, than contact us at: This email address is being protected from spambots. You need JavaScript enabled to view it. and write in object, the this topic object |
If you like, if it was useful, consider a donation, Thanks
Se vuoi, se ti siamo stati utili, considera una donazione, Grazie Help us by voting our extensions on Joomla.org: JiFile JoomPhoto Mobile Easy Language
Last Edit: 01 May 2013 00:21 by Giampaolo.
The administrator has disabled public write access.
|
If you not change browser settings, you agree to it. Learn more