31 return array(__CLASS__,
'onReadPermissionCheck');
42 if (Security\User::current()->canView())
47 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
57 return array(__CLASS__,
'onWritePermissionCheck');
68 if (Security\User::current()->canEdit())
73 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
83 return function (
Result $result)
90 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
101 return function (
Result $result)
108 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
119 return function (
Result $result)
126 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
137 return function (
Result $result)
144 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
155 return function (
Result $result)
178 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
189 return function (
Result $result)
196 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
207 return function (
Result $result)
214 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
225 return function (
Result $result)
232 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
243 return function (
Result $result)
250 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
261 return function (
Result $result)
268 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
279 return function (
Result $result)
286 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
297 return function (
Result $result)
304 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
315 return function (
Result $result)
322 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_READ_ACCESS')));
333 return function (
Result $result)
340 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
351 return function (
Result $result)
358 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
368 return function (
Result $result)
375 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
385 return function (
Result $result)
392 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
402 return function (
Result $result)
409 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
419 return function (
Result $result)
426 $result->addError(
new Error(
Loc::getMessage(
'SENDER_COMMON_AJAX_CHECKER_ERROR_NO_WRITE_ACCESS')));
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)
static getModifyLetterPermissionChecker()
static getModifySegmentPermissionChecker()
static onReadPermissionCheck(Result $result)
static getModifyRcPermissionChecker()
static getViewLetterPermissionChecker()
static getModifySettingsPermissionChecker()
static getViewSegmentPermissionChecker()
static getSelectSegmentPermissionChecker()
static getViewAdPermissionChecker()
static getViewRcPermissionChecker()
static getModifyRecipientsPermissionChecker()
static getModifyTemplatePermissionChecker()
static getModifyAdPermissionChecker()
static getPauseStopStartLetterPermissionChecker()
static getPauseStopStartAdsPermissionChecker()
static getReadPermissionChecker()
static getModifyBlacklistPermissionChecker()
static onWritePermissionCheck(Result $result)
static getWritePermissionChecker()
static getPauseStopStartRcPermissionChecker()
static getViewBlacklistPermissionChecker()
static getModifyAbusePermissionChecker()
static getViewRecipientsPermissionChecker()