News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Access Own Downloads Only [Solved]

Started by javerleo, 31.03.2022 04:08:39

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

javerleo

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
  •  

javerleo

I got a very good and detailed answer from Collin, but it suddenly disappeared. I think because I reported spam on some other posts.

  •  

ColinM

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
  •  

javerleo

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.



  •  

ColinM

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
  •  

javerleo

Quote from: ColinM 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.


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.
  •  

ColinM

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
  •  

javerleo

Quote from: ColinM 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


Thanks, Collin.

I will give it a try.
  •  

javerleo

Quote from: ColinM 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


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.
  •  

ColinM

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
  •  

ColinM

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
  •  

javerleo

Quote from: ColinM 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

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

Thank you very much, Colin.

Awesome job!
  •