Page 1 of 2

limit file by users

Posted: 19 Dec 2017, 10:06
by erickb
Hi

I can not find the way to manage the rights

I upload pdf in backend and these pdf must be accessible to certain users only, each user has his own pdf that he can download and he must not see other pdf

how can I do that ??

thank you


I solved the problem with

Code: Select all

foreach ($this->files as $v) {
if($v->owner_id != $this->t['user']->get('id', 0)){
			continue ;
		}
.... }
but 1000... of pdf are loaded for nothing

Re: limit file by users

Posted: 21 Dec 2017, 08:48
by erickb
nobody ?

here https://www.phoca.cz/documents/17-phoca ... ess-rights i find
In category you can set that files in the category can be downloaded by registered users only. But you can set that such files can be downloaded by only one selected user too. Specific user can be selected in Category Edit mode. Then all files from the category can be download by only selected user(s)
but in that case I have to do a category per user , most part of the time one category or one file ! it seems absurd
I need only one category for all

Re: limit file by users

Posted: 23 Dec 2017, 20:43
by Jan
Hi, yes, the rights for category are assigned for whole category.

In the file edit you can set rights for groups only, so this needs to be customized for each user :idea:

Jan

Re: limit file by users

Posted: 29 Dec 2017, 12:08
by AJB
How can I select a usergroup to have access to a file or category? I only see the users in the selection, but not de usergroups.

Re: limit file by users

Posted: 01 Jan 2018, 17:05
by Jan
Hi, for

category - you can set access (groups) and extend it by access rights (different users)
file - you can set access for groups.

Jan

Re: limit file by users

Posted: 06 Jan 2018, 19:25
by AJB
So in the main Joomla user/group administration, i made a new group, for example ' management. When i go to the settings of this new group, the "main group" setting is registered. Additional, some user's have access / are connected to this new group.
Then i go to Phoca download en to category and i make a new category.
In the settings of this new category, i want to give the new group 'management" have access to this new category, but it dosn't appears in the: "access" list, the access rights" list, the "upload access" list and the "delete access" list.
Why is it that i only she there the normaly user and not the groups?

Re: limit file by users

Posted: 06 Jan 2018, 20:56
by Jan
Hi, go to user groups:

Users - Groups - New - set new Group "NewGroup" (for example) and set Registered as Group Parent
Then go to Access Levels - New - Set new name e.g. "NewGroup" and click on NewGroup in checkboxes list

Then you can see this access level group in Access:

Image

Jan

Re: limit file by users

Posted: 07 Jan 2018, 18:53
by AJB
Hi,

The new group is with this step now visible in "Access", so that is ok!
The new group is stil not visible in " Access rights", " Upload Rights", and "Delete rights".
Why is that?

Re: limit file by users

Posted: 14 Jan 2018, 02:27
by Jan
Hi, access is set for groups, all other rules are set for specific users, not for groups.

Jan

Re: limit file by users

Posted: 28 Jan 2018, 17:49
by AJB
Hi,
And there is no way to change that?

AJB