Fork me on GitHub

Online block permissions error  Bottom

  • I tried to login to the Cozi to report this but it's throwing errors at me, so I'll report it here.

    This is an issue I previously reported (v1.1?) and I think it was fixed, but it's crept back in. It is a problem in 1.2.3 and it looks like it's in the 1.3 SVN as well.

    If a user is not permissioned for the message module, the online.php block does not send the username to the template. In v1.2.3:

    Code

    $msgmodule = pnConfigGetVar('messagemodule', '');
        if (SecurityUtil::checkPermission($msgmodule.'::', '::', ACCESS_READ) && pnUserLoggedIn()) {
            $pnr->assign('username', pnUserGetVar('uname'));
            // check if message module is available and add the necessary info
            $pnr->assign('msgmodule', $msgmodule);
            if (pnModAvailable($msgmodule)) {
                $pnr->assign('messages', pnModAPIFunc($msgmodule, 'user', 'getmessagecount'));
            } else {
                $pnr->assign('messages', array());
            }
        }


    should be:

    Code

    $msgmodule = pnConfigGetVar('messagemodule', '');
        $pnr->assign('username', pnUserGetVar('uname'));
        if (SecurityUtil::checkPermission($msgmodule.'::', '::', ACCESS_READ) && pnUserLoggedIn()) {
            // check if message module is available and add the necessary info
            $pnr->assign('msgmodule', $msgmodule);
            if (pnModAvailable($msgmodule)) {
                $pnr->assign('messages', pnModAPIFunc($msgmodule, 'user', 'getmessagecount'));
            } else {
                $pnr->assign('messages', array());
            }
        }
  • I already posted something about this in the Cozi profile here.



    Edited by pnFilip on Jun 18, 2010 - 10:16 AM.
  • yeap, this bug indeed exists in 1.3.0 SVN.
    have you tried clearing your cookies?
    i believe that this will help with the login to Cozi issue
  • Thanks, clearing the cookies worked. I've reported it.
  • 0 users

This list is based on users active over the last 60 minutes.