Display login link when processing queues. Display a login link when processing queues and the
user isn't logged in, rather than saying that there are no entries.
This commit is contained in:
committed by
WineHQ
parent
e93f09b0ad
commit
403e052a8c
@@ -84,6 +84,15 @@ class ObjectManager
|
|||||||
$this->checkMethods(array("ObjectGetEntries", "ObjectGetHeader",
|
$this->checkMethods(array("ObjectGetEntries", "ObjectGetHeader",
|
||||||
"objectGetTableRow", "objectGetId", "canEdit"));
|
"objectGetTableRow", "objectGetId", "canEdit"));
|
||||||
|
|
||||||
|
/* We cannot process a queue if we are not logged in */
|
||||||
|
if(!$_SESSION['current']->isLoggedIn())
|
||||||
|
{
|
||||||
|
$sQueueText = $this->bIsRejected ? "rejected" : "queued";
|
||||||
|
echo '<div align="center">You need to <a href="'.login_url().'">';
|
||||||
|
echo "log in</a> in order to process $sQueueText entries</div>\n";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$oObject = new $this->sClass();
|
$oObject = new $this->sClass();
|
||||||
|
|
||||||
/* Display selectors for items per page and current page, if applicable. The function
|
/* Display selectors for items per page and current page, if applicable. The function
|
||||||
|
|||||||
Reference in New Issue
Block a user