diff --git a/include/objectManager.php b/include/objectManager.php index f5c9b8b..dae9b7a 100644 --- a/include/objectManager.php +++ b/include/objectManager.php @@ -84,6 +84,15 @@ class ObjectManager $this->checkMethods(array("ObjectGetEntries", "ObjectGetHeader", "objectGetTableRow", "objectGetId", "canEdit")); + /* We cannot process a queue if we are not logged in */ + if(!$_SESSION['current']->isLoggedIn()) + { + $sQueueText = $this->bIsRejected ? "rejected" : "queued"; + echo '
You need to '; + echo "log in in order to process $sQueueText entries
\n"; + return; + } + $oObject = new $this->sClass(); /* Display selectors for items per page and current page, if applicable. The function