some ezc functions from templates/item.cpp moved to Item and ItemContent

methods HasAccess() HasReadAccess() and similar moved from System to Item and ItemContent
This commit is contained in:
2021-06-18 19:18:13 +02:00
parent ebd791a256
commit ec94dff7d7
32 changed files with 1255 additions and 544 deletions

View File

@@ -50,6 +50,9 @@ class Mounts;
class Users;
class Groups;
class SLog;
class Session;
class User;
class WinixModel : public morm::Model
@@ -64,10 +67,24 @@ public:
Users * get_users();
Groups * get_groups();
SLog * get_session_logger(); // FIXME always return null at the moment, should be set when a new request is created and clear at the end of a request
Session * get_session();
User * get_current_user();
const Config * get_config() const;
const Request * get_request() const;
const Log * get_logger() const; // there is no need for logger to be const, we can do nothing with such a logger
const Dirs * get_dirs() const;
const Mounts * get_mounts() const;
const Users * get_users() const;
const Groups * get_groups() const;
const SLog * get_session_logger() const; // FIXME always return null at the moment, should be set when a new request is created and clear at the end of a request
const Session * get_session() const;
const User * get_current_user() const;
protected:
WinixModelConnector * get_winix_model_connector();
const WinixModelConnector * get_winix_model_connector() const;
};