0.9.6.3 is the version. ive played around a little bit just trying to find where im getting booted. I preface this with the fact I’m not very skilled in php and certainly not in the internals of modx or this snippet. However, from the maxigallery.php code, around about line 288:
if($mg->checkPermissions($_SESSION['mgrInternalKey'],$mg->pageinfo['id'])) {
if($_REQUEST['mode']=="admin" || ($mg->mgconfig['manage_gallery']!="" && $mg->mgconfig['manage_target']=="")) {
I make it past the first if, but not the second. $_REQUEST[’mode’] appears to come back empty.
Further, from the maxigallery.class.inc.php
//function to check access permissions, fix provided by TobyL
function checkPermissions($userid,$docid){
global $modx;
if($userid) {
//if user is logged in from backend, check user-document permissions
include_once $modx->config['base_path'].'manager/processors/user_documents_permissions.class.php';
$udperms = new udperms();
$udperms->user = $userid;
$udperms->document = $docid;
$udperms->role = $_SESSION['mgrRole'];
if ($udperms->checkPermissions()) { <------ I can make it here (twice it goes here in fact)
return true;
}
which seems to indicate I have the proper permission? I’m really at a loss now.
if you have a suggestion on something to add to the code for debuggin purposes, please let me know. Speaking of that, I added the &debug to the MaxiGallery call and it seems to be outputing the debug code for the thumbnail section which makes sense if its not treating me as a privledged user.
Cheers