News:

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

Main Menu
Support-Forum

Permissions inheritance not working [Fixed in 3.2.19]

Started by VictorR19, 15.11.2014 19:42:46

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

VictorR19

System Information
PHP Built On    Linux web 3.13.0-39-generic #66-Ubuntu SMP Tue Oct 28 13:31:23 UTC 2014 i686
Database Version    5.5.40-0ubuntu0.14.04.1
Database Collation    utf8_general_ci
PHP Version    5.5.9-1ubuntu4.5
Web Server    Apache/2.4.7 (Ubuntu)
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla! 3.3.6 Stable [ Ember ] 01-October-2014 02:00 GMT
Joomla! Platform Version    Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
User Agent    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

jDownloads Version 3.2.16 Beta

Localhost system (LAMP)


Calculated permissions are not working...
I set Global Permissions properly (see attachment), but Categories and Files still show Not Allowed (see next attachment).

Regards,
Victor


[gelöscht durch Administrator]
  •  

rnlabs

Have the same problem, since I've upgraded to 3.2.16 beta

In addition I see this messagge before permission table when creating new category or download:

COM_JDOWNLOADS_SET_CREATE_PERMISSIONS_WARNING

Lookin further inside tables (assets) I found parent_id of new categories is set to 1 (root)...
So new categories inherit rules from root... I don't think it is ok.

Anyway I workarounded this problem setting category permission manually.
New download then inherit permission from categories without problems.

  •  

VictorR19

Ops...
In my case, I have already created all my Categories and Downloads, so I cannot delete and create them again.

Unfortunately no mod had acknowledged this bug report...
  •  

VictorR19

I couldn't fix it even changing Category permissions.
Downloads don't inherit permissions from categories.

Any help please?
  •  

Arno

Hi Guys,
sorry for the delay.
Yes, it seems that we have again a problem with permissions.  :-\
We will check this more extensive and then fix it so fast we can.

@VictorR19:
when all your categories and downloads shall have the same permissions, you can repair it with a simple db query in phpmyadmin:
Example to allowed public download for all Downloads:

UPDATE `xxx_assets`
SET rules = '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[],"download":{"1":1}}'
WHERE `name` LIKE '%jdownloads.download%'


The first value in: download":{"1":1} is the ID from your public user group and the second value activate this action.
The 'xxx' in the table name must be replaced with the prefix from your db.

For the jD categories can you use:
UPDATE `xxx_assets`
SET rules = '{"core.create":[],"core.delete":[],"core.edit":[],"core.edit.state":[],"core.edit.own":[],"download":{"1":1}}'
WHERE `name` LIKE '%jdownloads.category%'


But create always before a DB backup from the _assets table.

@rnlabs:
QuoteLookin further inside tables (assets) I found parent_id of new categories is set to 1 (root)...
So new categories inherit rules from root... I don't think it is ok.
I am not sure that in this case (new category) the rules are inherited from root category. But i will check this... thanks for the hint.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •