HandlerPageView: Prevent viewing older revisions if not allowed
Tá an tiomantas seo le fáil i:
		| @@ -90,6 +90,10 @@ Response HandlerPageView::handleRequest(PageDao &pageDao, std::string pagename, | |||||||
| 	{ | 	{ | ||||||
| 		if(revisionid > 0) | 		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); | 			revision = this->database->createRevisionDao()->getRevisionForPage(pagename, revisionid); | ||||||
| 			if(!revision) | 			if(!revision) | ||||||
| 			{ | 			{ | ||||||
|   | |||||||
		Tagairt in Eagrán Nua
	
	Cuir bac ar úsáideoir