limit file by users

erickb
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 19 Dec 2017, 10:01

limit file by users

Post by erickb » 19 Dec 2017, 10:06

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: 2
Joined: 19 Dec 2017, 10:01

Re: limit file by users

Post by erickb » 21 Dec 2017, 08:48

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: 39216
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post by Jan » 23 Dec 2017, 20:43

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: 3
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post by AJB » 29 Dec 2017, 12:08

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: 39216
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post by Jan » 01 Jan 2018, 17:05

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: 3
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post by AJB » 06 Jan 2018, 19:25

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: 39216
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post by Jan » 06 Jan 2018, 20:56

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: 3
Joined: 29 Dec 2017, 12:01

Re: limit file by users

Post by AJB » 07 Jan 2018, 18:53

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: 39216
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: limit file by users

Post by Jan » 14 Jan 2018, 02:27

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest