Page 1 of 1

upload file access level

Posted: 03 Jun 2010, 19:29
by daza
Hi I'd like that the uploaded files by users from the front end have by default level access set to "registered".Now they are public by default and only in back end is possible change that to "registered". So now even if I've already set the permissions for the categories, when user upload file in that categories, all user can download these files not only the ones I've specified in category's parameters.
How can I do this?

thanks

Re: upload file access level

Posted: 10 Jun 2010, 01:14
by Jan
Hi, if the category is not accessable, then no file can be downloaded from the category :idea:

if the file should be set to registered, you need to customize the code, so after uploading the access settings of file should be set to true.

See the controller (user) in frontend.

Jan

Re: upload file access level

Posted: 28 Oct 2011, 15:32
by pinocchio
Hello
I have a similar problem.
but I can't find this file.
please tell me what's file name?
Thanks

Re: upload file access level

Posted: 02 Nov 2011, 00:33
by Jan
components/com_phocadownload/controllers/ ...

Re: upload file access level

Posted: 23 Oct 2013, 16:58
by ecuapac
Hi!

I'm also trying to realize this and set the default access level to "restricted" when files get uploaded.

I'm looking those controllers now for quite a while without finding where the access level upon a file upload is set. Can anybody help with a more specific location than "components/com_phocadownload/controllers/ ...".

Thanks!

Re: upload file access level

Posted: 05 Mar 2015, 20:46
by jstratos
Did anyone resolve this issue yet? I just encountered the same issue. Whenever an admin user uploads a file from the frontend, it defaults to "registered" access level and not "public" even having checked all category rights settings and user access levels in the Options settings.

Using Joomla 2.5.28 with version 2.18.

Re: upload file access level

Posted: 06 Mar 2015, 16:24
by Jan
Hi, really no idea what can be wrong there but try to modify this file:

components/com_phocadownload\models\user.php

cca line: 350
$data['access'] = 1;

Then the file will be 100% set for public :idea:

Jan