File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313use skeeks \cms \modules \admin \controllers \AdminController ;
1414use skeeks \cms \modules \admin \controllers \helpers \rules \NoModel ;
1515use skeeks \cms \modules \admin \models \forms \SshConsoleForm ;
16+ use skeeks \cms \rbac \CmsManager ;
1617use yii \base \Exception ;
1718
1819/**
@@ -25,6 +26,9 @@ public function init()
2526 {
2627 $ this ->name = \Yii::t ('skeeks/mail ' , "Testing send email messages from site " );
2728
29+ $ this ->generateAccessActions = false ;
30+ $ this ->permissionName = CmsManager::PERMISSION_ROLE_ADMIN_ACCESS ;
31+
2832 parent ::init ();
2933 }
3034
@@ -66,7 +70,7 @@ public function actionSubmit()
6670 $ rr ->success = true ;
6771 $ rr ->message = "Письмо успешно отправлено " ;
6872 } else {
69- throw new Exception ("Письмо не отправлено: " . print_r ($ model ->errors , true ));
73+ throw new Exception ("Письмо не отправлено: " . print_r ($ model ->errors , true ));
7074 }
7175 } catch (\Exception $ e ) {
7276 //throw $e;
You can’t perform that action at this time.
0 commit comments