limit file by users

Phoca Download - download manager
erickb
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Dec 2017, 10:01

limit file by users

Post 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
erickb
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 19 Dec 2017, 10:01

Re: limit file by users

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post 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
If you find Phoca extensions useful, please support the project
AJB
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post 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
If you find Phoca extensions useful, please support the project
AJB
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post 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
If you find Phoca extensions useful, please support the project
AJB
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post 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?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post by Jan »

Hi, access is set for groups, all other rules are set for specific users, not for groups.

Jan
If you find Phoca extensions useful, please support the project
AJB
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post by AJB »

Hi,
And there is no way to change that?

AJB
Post Reply