dynamic,HandlerFeedGenerator: Check for read permissions

This commit is contained in:
2023-07-26 22:46:14 +02:00
vanhempi 32af0e2857
commit 234db99ef5
7 muutettua tiedostoa jossa 30 lisäystä ja 15 poistoa

Näytä tiedosto

@@ -9,18 +9,20 @@ private:
Template *templ;
Database *db;
UrlProvider *urlProvider;
Session *session;
public:
DynamicContentFactory(Template &templ, Database &db, UrlProvider &urlProvider)
DynamicContentFactory(Template &templ, Database &db, UrlProvider &urlProvider, Session &session)
{
this->templ = &templ;
this->db = &db;
this->urlProvider = &urlProvider;
this->session = &session;
}
template <class T> inline std::shared_ptr<T> createDynamicContent()
{
return std::make_shared<T>(*this->templ, *this->db, *this->urlProvider);
return std::make_shared<T>(*this->templ, *this->db, *this->urlProvider, *this->session);
}