www.jdownloads.com

0 Members and 1 Guest are viewing this topic.

Access Own Downloads Only [Solved]
« on: 31.03.2022 04:08:39 »
Hello.

Sorry if this topic was already asked, but I couldn't find a straightforward answer.

I need to allow registered users to view/edit/download only their own documents (created/uploaded by themselves). But those documents/files will be spread across several categories/folders. Administrators and superusers should be capable of view/edit/download all documents.

Is there some guide to achieve this?

Thanks in advance.

See
https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/limited-access-example
ColinM

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/limited-access-example
« Last Edit: 05.04.2022 12:56:21 by ColinM »
Re: Access Own Downloads Only
« Reply #1 on: 31.03.2022 16:01:24 »
I got a very good and detailed answer from Collin, but it suddenly disappeared. I think because I reported spam on some other posts.

*
Re: Access Own Downloads Only
« Reply #2 on: 31.03.2022 16:23:15 »
Hi
This is readily done by using the menu item List My Downloads.  The logged on user will then see all those Downloads that they have created.  Initially this might mean you have to edit some existing downloads to get the correct creator.  For a few more details see
https://www.jdownloads.net/documentation-for-v3-9/menu-items-v3-9/menus-overview-details

I would suggest that you create a separate user group for all those users with registered as its parent.  see also
https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/user-groups-settings-overview-2
Make sure you set the Ranking value to say121

You will also need an Access Level with this User group in it to control viewing the menu item 'list my downloads'

Then in the top level categories set the permissions for this user group to allow Create, Edit etc - the permissions will cascade down
Similarly set the Permissions for the 'Managers' also to be able to edit etc (and Delete)

Basically most of the work is setting up the user group(s) and the Permissions.  Also I would not use the existing User Groups (except Super User of course) but another set so you can choose what abilities of the Downloads Managers as opposed to those who can say edit articles and so on.  Users may of course belong to several usergroups.

There are several articles on permissions  in
https://www.jdownloads.net/index.php?option=com_content&view=category&id=32

When doing this sort of thing I usually write it out first1

You may need some more help so please just ask

Colin
Colin M
Re: Access Own Downloads Only
« Reply #3 on: 31.03.2022 20:12:07 »
Thanks for your kind guidance.

I'm trying a setup with two user groups:

- Uploader (they should view and have control over their owned downloads only).

- Admin Uploader (Created to manage downloads from the front-end)

Access levels with same names were also created.

There is a category "Private" with subcategories like "Reports", "Budgets" and so on.

The idea is to allow users from Uploader group to view, create, edit their own downloads only, across all the private folders.

Most of the functionality works fine. There is a "My downloads" menu link that shows the downloads created by the logged-in user only.

The only problem right now is that the Uploader user can view downloads created by other users of the same group, across all the private categories.

Any advice to solve that last issue?

Thanks for your support.



*
Re: Access Own Downloads Only
« Reply #4 on: 01.04.2022 12:03:08 »
Hi
How many 'private' users do you expect?
What ranking values have you used for the private user group and the'supervisor' group.


Colin
Colin M
Re: Access Own Downloads Only
« Reply #5 on: 01.04.2022 15:08:15 »
Hi
How many 'private' users do you expect?
What ranking values have you used for the private user group and the'supervisor' group.


Hello.

We expect about 20 Uploaders and 5 Admin Uploaders.

The Admin Uploader group has a ranking of 250 and the Uploader group has a ranking of 200 in the JDownloads settings area.

Best regards.
*
Re: Access Own Downloads Only
« Reply #6 on: 01.04.2022 16:09:50 »
Hi
I have been updating an old article and just got it inyo a 'reasonable' shape - but not quite finished.  It is a long and detailed article but the most extensive case ate the end should suit your needs.

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/controlled-access-to-categories-and-downloads-permissions-access-levels

Colin
Colin M
Re: Access Own Downloads Only
« Reply #7 on: 01.04.2022 16:23:48 »
Hi
I have been updating an old article and just got it inyo a 'reasonable' shape - but not quite finished.  It is a long and detailed article but the most extensive case ate the end should suit your needs.

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/controlled-access-to-categories-and-downloads-permissions-access-levels


Thanks, Collin.

I will give it a try.
Re: Access Own Downloads Only
« Reply #8 on: 01.04.2022 19:07:33 »
Hi
I have been updating an old article and just got it inyo a 'reasonable' shape - but not quite finished.  It is a long and detailed article but the most extensive case ate the end should suit your needs.

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/controlled-access-to-categories-and-downloads-permissions-access-levels


Your guide is a good starting point for a more complex scenario. I will be appreciated.

However, I still can't find a way to accomplish my goal.

Note that my desired setup implies that users can view, create and edit ONLY their own downloads across a particular categories tree. Downloads created by other users should be invisible, non-downloadable and non-editable when browsing those private categories. Please confirm if this goal is possible with the latest version of JDownloads.

I have a good understanding of PHP coding. So, if you point me to the right direction, maybe I could personalize the extension to fulfill my requirements.

Thanks a lot for your help.
*
Re: Access Own Downloads Only
« Reply #9 on: 03.04.2022 11:49:56 »
Hi
I had a thought about you setup and realised we need a slightly different approach.  So I have now made up a test site that I believe would suit your needs.  Will document and send details later.  Testsite has 3 'restricted' users and one supervisor who can access all
Attached is a pic of the categories setup as a start  - actually I think that the very top category is not required but will see

Colin
Colin M
*
Re: Access Own Downloads Only
« Reply #10 on: 05.04.2022 12:53:33 »
Hi
Have written a new document that illustrates how to make a limited access - 'membership' type site see

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/limited-access-example

ColinM
Colin M
Re: Access Own Downloads Only
« Reply #11 on: 05.04.2022 18:57:55 »
Hi
Have written a new document that illustrates how to make a limited access - 'membership' type site see

https://www.jdownloads.net/documentation-for-v3-9/access-user-group-permissions-v3-9/limited-access-example

ColinM

Indeed, that document outlines the steps to accomplish the goal.

Thank you very much, Colin.

Awesome job!