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

You do not have permission to download this file despite rights to download

Started by DICIDE, 17.07.2023 02:48:33

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DICIDE

Hello,
I hope you understand my english

I am in despair. Every time it says:
You do not have permission to download this file
Although I'm in the user group and donload is allowed in the permission!

With Joomla 3 I never had these problems! I have permission but keep getting this message:
You do not have permission to download this file

Is this a bug? Or have I forgotten something in the anger?
I'm also under pressure because one side has to be finished.

The joke is that if I go to the file with Super User then it works!
But not the Downloads user group
Although I have granted the rights to download both the category and download! set to allowed

Best regards
Jens
  •  

ColinM

Jens
This is not a general problem - presently it seems isolated to your site so to see what is going on I will send you a Personal Message asking for some details.  These PMs are secure

What is often the case is somewhere there may be a Deny permission set which causes many unexpected problems

Best wishes
Colin
Colin M
  •  

DICIDE

Hello @ColinM

I finally localized the problem! I'm surprised that despite the release of the group, e.g. download standard for downloading, the refusal takes place.
(Info: The user group Download-Standard is a group of the parent group Public) Not the parent Registered group!

The problem was:
The user had the user group: Normal-Member and Download Standard
The user group Normal member (after registration) had set download denied. Normal member shouldn't be able to download either. Hence the additional group Download Standard and therefore Member Standard had been denied! And download standard allowed!
I forgot that Denied is higher than Allowed. Even though the user is in the Download Standard group where downloading is allowed. And the rights cannot inherit from member standard because download standard belongs to the parent public group.
This means that the Normles member group (which is not supposed to download) has blocked the other user group Download Standard. Although the download standard was allowed!

Now I have set member default to inherited, but downloading is not allowed. And now the Download Standard user group finally had access!

Yes, that's such a complex thing with user groups that can sometimes cost you nerves.

Now it's working.

But thanks for your answer @ColinM

Warm greetings from Germany:
Jens
  •  

DICIDE

Now I have one last question:

I use the download limit module and it also shows everything correctly, in which I have also changed the language so that it looks even better.

but if a user now has a group where this group is not allowed to download, the module will be displayed that he is allowed to download without restrictions. Actually, it should be displayed that he is not authorized to download.
The registered user group is also revoked permission to download.
But why does the limit module show that the registered user can download unlimited? As I said, it should say You are not authorized to download.

Or is the module not programmed for this? I think no because I didn't see anything in the Default.php from the limit module that this module supports this function

The JDownload experts will definitely tell me.

Best regards
Jens
  •  

ColinM

For setting limits please see the article
https://www.jdownloads.net/documentation/general-items-v3-9/setting-user-limits

The Limits are set on a User Group basis but executed on an individual user basis.

If you have created your own user groups be sure to set the ranking value sufficienlty high so they are more significant than their pateny user group I typically use a value such as 129
  Hope this helps otherwise I will need to lokk at your sit
Best wishes
Colin
Colin M
  •  

Arno

Hi Jens,
was das Modul angeht:
Hast du die Version 4.0.28?
Kannst du mir mal einen Link per PM zum Modul senden?


Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ColinM

Hi
You also need to note that the Root of the Permissions is the Public User Group. 
Simarly if you set a permission in say registered it applies to all user groups that have Registered as its Parent.  The only exception is the SuperUsed group which is essentially totally seperate.

Yes Permissions and User Groups are a challenge.  For permissions think of them as cascading down from the parent through its children picking up premissions as the cascade down  For User Group jD uses a Ranking level to decide which UG should be used - the UG highest ranking level is the one used.  When I create a specific UG I typically use a ranking level of about 130.

Colin

There are many articles at
https://www.jdownloads.net/documentation/access-user-group-permissions-v3-9
Colin M
  •  

DICIDE

Hello, my dears,

Sorry I couldn't give an answer for the last few days because I've been on the road a lot.

The problem has meanwhile been solved, yes it was due to the rights I had some errors in the user groups. I have now created separate groups that come directly from Pulic. And then it worked.

subordinate groups cause difficulties as I have noticed. If a user owns the group e.g. registered which is not allowed to download and the group download which is allowed to download, the registered group blocks the group download although the group download is allowed to download

I solved the problem by creating separate individual groups. Which are directly inherited from Pulic. And now it works and no download group that is allowed to download is no longer locked out!

But thanks for your help!

Best regards
Jens


PS:
I discovered an error in a module! The error is clearly in the module or in the SQL data. I'll start a new post about it! I don't use the module but I think it's useful when bugs are reported.
  •  

ColinM

Hi
Maybe somewhere you have included a 'deny' - that is often the problem.  Also in your User Group have you set the ranking to a suitably high value

I will send you a Private Message as they are secure
Colin
PS your English is fine!!!
Colin M
  •