1
0

HandlerPageView: Prevent viewing older revisions if not allowed

Dieser Commit ist enthalten in:
Albert S. 2020-09-21 21:44:26 +02:00
Ursprung d974d4bfb6
Commit 5abaaf67d0

Datei anzeigen

@ -90,6 +90,10 @@ Response HandlerPageView::handleRequest(PageDao &pageDao, std::string pagename,
{
if(revisionid > 0)
{
if(!effectivePermissions(pagename).canSeePageHistory())
{
return errorResponse("Error", "You are not allowed to view older revisions of this page");
}
revision = this->database->createRevisionDao()->getRevisionForPage(pagename, revisionid);
if(!revision)
{