News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Upload Permissions

Started by wolfspyryt, 26.11.2016 22:53:10

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wolfspyryt

I have a 3 Parent Categories, each with 4 Sub-Categories in jDownloads,
I do not want members to upload to the parent categories, only to the sub-categories. However, when I set the permissions for the Parent Categories to stop uploads, the permissions are applied also to the sub-categories, and I cannot over-ride it in the Sub-Categories.

How do I "Dis-Allow" uploading to the Parent Categories and...
Allow uploading to the Sub-Categories?
  •  

ColinM

#1
Terry
First never use Deny permission as it usually has unintended consequences.
Normally one would set Allowed permissions on the top level categories but not for the situation you describe.

In the following 'upload-permissions' means the create, edit and possibly delete permissions as these are the permissions related to creating/editing Downloads. Download permission is set separately and is not discussed here. I would advise against setting the Edit State permission to anything other than Inherited.  Also I personally think Delete permission is for the Super Admin only. Also adding Edit Own is really only useful in special situations, allowing it could cause some confusion.
I also assume for the moment that there is a single 'uploader' User Group (UG) called say UploaderUG.  So also create a view Access Level, called say UploaderView whose only member is UploaderUG, but you could also add other UGs such as Super Admin.

Make sure that the the Component upload-permissions, accessed through the Options button on jD Control Panel, are set to inherited.
Similarly set the upload-permissions on the three top level categories to Inherited.  This means that 'uploading' is not allowed in those top level categories.

Now from the jD Categories page in the backend access  one of the sub categories, select Permissions and then the UploaderUG, and set the 'upload-permissions' to Allowed, then Save and Close. Repeat for the other eleven sub categories.

Next you need to create a jD 'Create Download' menu item with view Access Level set to UploaderView.  Provided this is the only Create Download menu item then the Add button will work fine. Also ensure in the menu item Options you allow selection of Categories - select No for Default Categories.  In the User Groups Settings - Group Creation/Editing tab make sure field that field 'May select a different Category' is selected ('ticked').
All should now be set up.

However it might be advantageous in the long run to have an uploader UG associated with each of your top level categories.  Individuals may then belong to one or more of these UGs.  You could then create three 'Create Download' menu items with a view Access Level whose member is just the relevant UG. This might help minimise uploaders in allocating to the wrong main category. This is more set up work of course but the principles are identical.  Would advise in this setup that each uploader UG  deselects the 'Display add/upload icon' field as currently there would be uncertainty about which Create Download menu item is selected.

Another more complex scheme would be to set up 12 uploader UGs each with an associated view Access Level and a Create Upload Menu item.  Then each menu item could fix the Category by setting it as the default, and both User Groups Settings fields 'May select a different Category' and 'Display add/upload icon' would be deselected.

Colin
Colin M
  •