Fork me on GitHub

BSCI Permission & AT lite conflicts  Bottom

  • HELP.

    I'm running Postnuke 0.7.2.6-3 with BSCIpermissions - version 1.1

    Everything works fine at this point...

    I add AutoTheme .8

    I load the AT files, Initilize and Activate.

    Go through BSCI set AT to Admin access

    In a non-AT theme - create new block, set BSCI permissions - BSCI settings are ignored.

    I altered this file...
    AutoTheme/includes/postnuke/atAPI.php

    Code

    if (!$modinfo) {
    $modinfo['name'] = "Core";
    }

    Which will be near the end of the file.

    Now replace this line:
    echo pnBlockShow($modinfo['name'], $block['bkey'], $block);
    With this:

    // BEGIN BSCIpermissions verification
    if(pnModAvailable('BSCIpermissions')){
    if(pnModGetVar('BSCIpermissions','activatePermissions')
    && pnModGetVar('BSCIpermissions','activateBlocks')){
    if (!pnModAPILoad('BSCIpermissions', 'user')) {
    $result->MoveNext();
    }
    if(pnModAPIFunc('BSCIpermissions', 'user',
    'canAccessBlock',array('bid'=>$block['bid']))){
    echo pnBlockShow($modinfo['name'], $block['bkey'], $block);
    }
    }else{
    echo pnBlockShow($modinfo['name'], $block['bkey'], $block);
    }
    }else{
    echo pnBlockShow($modinfo['name'], $block['bkey'], $block);
    }
    // END BSCIpermissions verification


    (instructions are from Boahx)

    I log out ... then log in.. I see "Logging you in hang tight" ..... and it never loads.

    ???
  • Anyone? Beuller? *sigh*

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