jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: antonios on 22.03.2020 19:23:54

Title: Author user cannot download files
Post by: antonios on 22.03.2020 19:23:54
Hi
I just realized that users of my website who are registered  as authors, cannot download files stored through Jdownloads.
The message that they get, when accessing the section where the file is actually stored from the front-end: "No authorized access to download"
I tried to download other files, and I get the same message. Which may mean that there is something wrong with the permissions at a global level. As I said the user is registered as Author, which is a subcategory of Registered, so it should inherit the Registered privileges. I made sure that the Registered user has the download property set to true (all others are set to 'Non Allowed'). The files are all 'public'
What can be wrong? Is it possible that some other properties need to be se to 'Allowed' for the downloading to also work?
Regards
Title: Re: Author user cannot download files
Post by: ColinM on 24.03.2020 16:38:51
Hi

Have you used Deny permission anywhere?  I can cause the most unexpected effects.
Did you look at the Permissions in a particular Download that refused to be Downloaded.Also have you checked the permissions set in the relevant top level Category?
Actually I cannot find the message  No authorized access to download in any of the language files. The nearest was  COM_JDOWNLOADS_ANTILEECH_MSG="Unauthorized access to Downloads."

Colin
PS have sent you a PM
Title: Re: Author user cannot download files
Post by: antonios on 25.03.2020 13:41:47
Hi Colin, thanks for your reply. I think I mistranslated the error message and the actual message in English would the one that you mention. Also I could not find any place where a permission is DENIED. All the categories inside JDownloads have PUBLIC access, and the problem is generalized to all stored articles. Can I have have some more guidance on what to look for?
Best regards
Title: Re: Author user cannot download files
Post by: ColinM on 26.03.2020 16:37:20
Hi
It occurs to me that you maybe confusing Access and Permissions.They are different  Access allows you to see things, Permissions allow you to Do things.
In each Toplevel Category select Permissions.  Now for demo I will assume you have one set of categories that have downloads in them that public may download.  And just for simplicity I will assume that one of these top level categories is called 'Anyone'.  So in the permissions of cat 'Anyone' select the Public usergroup (UG) and set the Download permission to Allowed.  Now save. then save and close.  Repeat for all top level categories that have downloads somewhere in the chain of subcategories and susub cats etc all Downloads in them are to be allowed to be downloadable by anyone.
If you have Downloads that users must be Registered to download then in the registered UG of those top level cats set the permission to allowed, save etc
Colin
Title: Re: Author user cannot download files
Post by: antonios on 04.04.2020 00:16:29
Dear Colin thx for your reply.
I checked JD settings in my website and all categories and user permissions seem to be as you explain.
I'll attach a few screenshots so you can see. The first one shows all the categories I have. As you can see the 'Access' columns marks 'Public' in all categories.
In the second file attached I entered the category settings and, as you can see there as well the Access property is set to public, as before. If I click on the 'Set permission' button, I get the third image where the users registered as 'Authors' have the 'download' permission to Allowed.
So.. don't really understand what else might cause Author users not to be able to download anything. Also can't see any other user type having a 'Denied' permission set. I can download files by logging in as superuser, if this helps you figuring out....
Title: Re: Author user cannot download files
Post by: ColinM on 06.04.2020 15:37:31
HiSo it does not look like an Access problem.
On your site is anyone allowed to Download or must they be logged in?
The Super User basically has all permissions.
Could you check on the Root permissions for jDownloads - see pic - and let me know who has Download Permission.  It maybe  no one has because for some Downloads users need to be logged in.
Colin
Title: Re: Author user cannot download files
Post by: antonios on 07.04.2020 18:51:09
Dear Colin, I checked the permissions in the superuser panel and I have 'Not allowed' for public but (as I showed) 'Allowed' for both Registered and Author. All the content require the users to be logged in. However, I changed the Public UG permission to 'Allowed' as well, just to see if it allowed downloads, and it does allow it, but now just anyone without any  registration needed, and I'd need to allow downloads only for registered users. Best regards
Title: Re: Author user cannot download files
Post by: ColinM on 07.04.2020 18:56:47
Hi
Just to check that the actual permission in Public is Inherited so the Computed permission is Not Allowed (inherited)Colin
Title: Re: Author user cannot download files
Post by: antonios on 07.04.2020 21:12:20
Hi Colin
I did just try this and it is still not possible for registered users to download any document, but I set Allowed for Registered users...also I realized that sometimes, when entering the jdowload section of the fornt-end of the website I get this error message (not always though) "Notice: Undefined variable: mail_encode in components/com_jdownloads/views/category/tmpl/default.php on line 1506
" I wonder if this could be related. Regards
Edited out part of address for securityColin
Title: Re: Author user cannot download files
Post by: ColinM on 08.04.2020 13:02:49
Hi
Seems strange - not had that error previously.
Is it a recent error as sometimes other extensions cause challenges.I sent you a PM

Colin