Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Question Custom permissions

More
16 years 4 months ago #35229 by Leon
Replied by Leon on topic Re:Custom permissions
Hello again. Sorry for the delay, but I have been out.

I have downloaded and installed the version 1.5.7 and now I can see the function that you said, but I tried your code and it doesn't seem to work.
Code:
function updateAllowedForums($my_id, $aro_group, $acl) { // check to see if we need to refresh the allowed forums cache // get all accessaible forums if needed (eg on forum modification, new session) if (!$this->allowed or $this->allowed == 'na' or $this->isNewSession()) { $allow_forums = CKunenaTools::getAllowedForums($my_id, $aro_group->id, $acl); if (!$allow_forums) { $allow_forums = '0'; } if ($allow_forums != $this->allowed) { $this->allowed = $allow_forums; } } // List of users with permissions to extra categories (userid => 'catid list') $extraperm = array(69 => '44,77'); if (isset($extraperm[$my_id])) $this->allowed .= $extraperm[$my_id]; }

This is the code of the function that I use. 69 is the ID of the user I want to give access, 77 is the category I want to give access to and 44 is the id of the category "father" of the 77.

Any idea about why it doesn't work? Have I done something wrong?

Thanks again!!

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #35372 by Matias
Replied by Matias on topic Re:Custom permissions
hmm.. it seems that there is missing comma:

$extraperm = array(69 => ',44,77');

Please Log in or Create an account to join the conversation.

More
16 years 4 months ago #35447 by Leon
Replied by Leon on topic Re:Custom permissions
Thanks for all Matias, it works like a dream!! ;-)

Please Log in or Create an account to join the conversation.

Time to create page: 0.301 seconds