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.
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 }