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 #34381 by Leon
Custom permissions was created by Leon
Hello!!

I need to create a category on my forum for a few users (some registered users, some authors..).

Is possible to assign individual permissions (to users) for a specific category?
Is possible to create new groups and assign group permissions?
How can I do it?

Thanks in advance!!

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

More
16 years 4 months ago #34461 by Matias
Replied by Matias on topic Re: Custom permissions
Currently you need to change code in order to do this. Fortunately there's only one place:

components/com_kunena/lib/kunena.session.class.php

There's variable named $allowed, which contains list of all forums that are allowed to user. To do it, you need some basic coding skills.

function updateAllowedForums() does the hard work.. You may just add few new categories if user matches.

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

More
16 years 4 months ago #34497 by Leon
Replied by Leon on topic Re:Custom permissions
I have taken a look to the file that you say but I don't what to do.

Can you make an example to do it? Then I only have to change the users and categories ids.

In which part of the file must I write the code?

Thanks!!

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

More
16 years 4 months ago #34519 by Matias
Replied by Matias on topic Re:Custom permissions
Add this into the end of updateAllowedForums() function:
Code:
// List of users with permissions to extra categories (userid => 'catid list') $extraperm = array(100 => '1,2,3,4', 120 => '3,4,5,6'); if (isset($extraperm[$my_id])) $this->allowed .= $extraperm[$my_id];

That's it! Now you just need to add your special users to that list.

I've not tested if this works, so let me know..

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

More
16 years 4 months ago - 16 years 4 months ago #34562 by Leon
Replied by Leon on topic Re:Custom permissions
Thanks for the quick answer Matias!!

I haven't tried it yet because in my "kunena.session.class.php" file there isn't a updateAllowedForums() function!! (I attach the file I have).
Last edit: 16 years 4 months ago by Leon.

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

More
16 years 4 months ago #34710 by Matias
Replied by Matias on topic Re:Custom permissions
Try to use K1.5.7 (or K1.5.8 within few days).

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

Time to create page: 0.266 seconds