Benvenuto,
Ospite
|
|
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 |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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 |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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. |
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
|
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" Questa immagine è nascosta ai visitatori. Prego accedi o registrati per visualizzarli. 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: Questo indirizzo email è protetto dagli spambots. E' necessario abilitare JavaScript per vederlo. 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
Ultima modifica: 01/05/2013 00:21 da Giampaolo.
L\'Amministratore ha disattivato l\'accesso in scrittura al pubblico.
|
Facendo click su qualunque link della pagina si accetta il loro utilizzo. Per saperne di piu'