• Hi,
    Your function breaks display of other custom columns : their data values are empty. It’s because you don’t return the value ($empty) if columnName is not uam_access.

    I suggest you a little patch :

    public function addUserColumn($empty, $columnName, $id)
        {
            if ($columnName == 'uam_access') {
                return $this->getIncludeContents(
                    UAM_REALPATH.'tpl/userColumn.php',
                    $id,
                    'user'
                );
            }else{
              return $empty;
            }
        }

    This should solve the problem.

    https://www.ads-software.com/extend/plugins/user-access-manager/

Viewing 1 replies (of 1 total)
  • Hi Dric, I know this is an old post but I just wanted to say thanks. I ran into the problem myself and after spending ages stepping through code with the debugger I came to the same conclusion. I wasn’t sure though so it was great to find your post confirming it.

    Just for reference for anyone else trying to find this, for User Access Manager version 1.2.2 the function addUserColumn is on line 1189 of plugins/user-access-manager/class/UserAccessManager.class.php

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: User Access Manager] tweak for function addUserColumn’ is closed to new replies.