Timesheets-Server
Timesheets server
Načítám...
Vyhledávám...
Nebylo nic nalezeno
Makra

Definice maker

#define AUTHORIZEREQUEST(x)
 

Detailní popis

Dokumentace definic maker

◆ AUTHORIZEREQUEST

#define AUTHORIZEREQUEST ( x)
Hodnota:
if (!isAuthorized(x)) { \
serviceError(request, response, 401, "Unauthorized", \
QString("Your user account is not authorized to access this page (%1)") \
return; \
}
static QString toString(Permission)
Vrací název oprávnění v textu.

Definice je uvedena na řádku 30 v souboru abstractcontroller.h.

30#define AUTHORIZEREQUEST(x) \
31if (!isAuthorized(x)) { \
32 serviceError(request, response, 401, "Unauthorized", \
33 QString("Your user account is not authorized to access this page (%1)") \
34 .arg(Security::Permissions::toString(x)) ); \
35 return; \
36 }