jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: ColinM on 10.04.2023 14:55:51

Title: Permissions not propagating [solved]
Post by: ColinM on 10.04.2023 14:55:51
Permissions not propagating
Using jD 4.0.24 but think this was also the case with earlier versions - so apologies for not reporting earlier. :-[

It seems that UG permissions are not propagating from top level categories to sub-cats and Downloads.

The Global permissions for jDownloads has Public as Allowed.
Pic 'Categories Arrangement.png' shows how the categories are arranged.
pic 'Top Level Category Permissions.png' shows that the top level cat 'Public Downloads' has pubic permission as Allowed
Pic 'sub-cat-permissions, which is a sub cat of 'Public Downloads', has not inherited the relevant permissions.

I belive this is because I uploaded all of the Cats and Downloads  into dir jdownloads and then used 'Check Download Area' to create them.   Also had 'automatically publish newfound items as Yes


However if I create a new sub-cat it does receive the permission from its parent AOK
Colin
Title: Re: Permissions not propagating
Post by: Arno on 11.04.2023 23:04:35
Hi Colin,
didn't you already report it here?
https://www.jdownloads.com/forum/index.php?topic=13922.0

But I could not reproduce the problem. Perhaps I also lacked this information:
QuoteI belive this is because I uploaded all of the Cats and Downloads  into dir jdownloads and then used 'Check Download Area' to create them.   Also had 'automatically publish newfound items as Yes

So I will try it now again in this way.
Title: Re: Permissions not propagating
Post by: ColinM on 12.04.2023 12:24:01
Arno
Thought I should report again as I was very puzzled why this was happening on my test site but not for you or others.
Then I realised the pocedure I use for a new XAMMP site to populate would probably not be used by other people.
Colin
Title: Re: Permissions not propagating
Post by: Arno on 13.04.2023 10:13:09
I have now tried your scenario with a new (but not empty) version 4.0.25 installation.

- I created 3 new folders
- I have copied 3 files in the level 3 category
- started scan process default settings (but access = registered)
- the result was correct (all levels and and also the Downloads have a public download permission (as expected).

But I will try it later another time on a server installation.
Title: Re: Permissions not propagating
Post by: ColinM on 16.04.2023 18:43:20
Arno
yes it now seems AOk
Used a completely new Joomla! 4 and jD4.0.25

The only challenge is that when running Check Download Area and there is somthing added then the 'Finished! You can now close this window.' does not close!!
I looked ate the generated code and that seems OK
<input type="button" class="btn btn-success btn-block btn-sm" style="max-width:350px;" value="Finished! You can now close this window." onclick="windowClose();">

Colin