test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • bizguy Friend
    #187943

    Can someone help me locate where I would change the permissions to restrict adding comments to a specific user group I have created. Currently only members or all is supported but I would like to change members to group 10 (in my case)
    Thanks for your help in advance,

    Ed

    MoonSailor Friend
    #494668

    Hi bizguy,

    For now Permissions to post comment supports “All (include guests)” or “Only member”. I have added the improvement request to the list and we would be rolling this update in next version.

    Regards.

    bizguy Friend
    #494717

    Hi MoonSailor:

    Thank you for the information and I will look forward to the update.
    If anyone else is looking for a quick fix until the update, I edited the following to accomplish this for myself:
    components/com_adsmanager/views/details/tmpl/default_block.php

    at line 27 I added:


    $user = JFactory::getUser();
    $db = JFactory::getDbo();
    $query = "SELECT group_id FROM `#__user_usergroup_map` WHERE user_id='" . $user->id . "'";
    $db->setQuery($query);
    $accessLevel= $db->loadResult();

    about lines 133 & 261 I changed:


    if (! $isCloseThread) {

    to:


    if (! $isCloseThread && $accessLevel == 10) {

    I needed to restrict access to user access level 10

    I hope this helps someone.

    Ed

    MoonSailor Friend
    #494763

    HI bizguy,

    <blockquote>at line 27 I added:
    Code:
    $user = JFactory::getUser();
    $db = JFactory::getDbo();
    $query = “SELECT group_id FROM `#__user_usergroup_map` WHERE user_id='” . $user->id . “‘”;
    $db->setQuery($query);
    $accessLevel= $db->loadResult();
    about lines 133 & 261 I changed:
    Code:
    if (! $isCloseThread) {
    to:
    Code:
    if (! $isCloseThread && $accessLevel == 10) {
    I needed to restrict access to user access level 10</blockquote>

    Thanks for sharing, I will discuss with development team and add it in the upcoming version

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  MoonSailor 11 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum