26
26
namespace access_logic {
28
28
int view_resources_role ();
29
bool privilege_view_resources (void * webserver_request, string user = "");
29
bool privilege_view_resources (void * webserver_request, std::string user = "");
31
31
#define PRIVILEGE_VIEW_NOTES 2
32
32
int view_notes_role ();
33
bool privilege_view_notes (void * webserver_request, string user = "");
33
bool privilege_view_notes (void * webserver_request, std::string user = "");
35
35
#define PRIVILEGE_CREATE_COMMENT_NOTES 3
36
36
int create_comment_notes_role ();
37
bool privilege_create_comment_notes (void * webserver_request, string user = "");
37
bool privilege_create_comment_notes (void * webserver_request, std::string user = "");
39
39
int delete_consultation_notes_role ();
40
bool privilege_delete_consultation_notes (void * webserver_request, string user = "");
40
bool privilege_delete_consultation_notes (void * webserver_request, std::string user = "");
42
42
int use_advanced_mode_role ();
43
bool privilege_use_advanced_mode (void * webserver_request, string user = "");
43
bool privilege_use_advanced_mode (void * webserver_request, std::string user = "");
45
void user_level (void * webserver_request, string & user, int & level);
45
void user_level (void * webserver_request, std::string & user, int & level);
46
46
void create_client_files ();