Fix:
1. Documentation; 2. Actions access in AdminController and SettingController by enableSessionHistory; 3. Add "visible" menu parameter by enableSessionHistory; 4. Add blank line in end of file.
This commit is contained in:
@ -104,6 +104,11 @@ class AdminController extends Controller
|
||||
'actions' => ['switch-identity'],
|
||||
'roles' => ['@'],
|
||||
],
|
||||
[
|
||||
'allow' => $this->getModule()->enableSessionHistory,
|
||||
'actions' => ['session-history', 'terminate-sessions'],
|
||||
'roles' => ['admin'],
|
||||
],
|
||||
[
|
||||
'allow' => true,
|
||||
'roles' => ['admin'],
|
||||
|
||||
@ -115,8 +115,6 @@ class SettingsController extends Controller
|
||||
'two-factor',
|
||||
'two-factor-enable',
|
||||
'two-factor-disable',
|
||||
'session-history',
|
||||
'terminate-sessions',
|
||||
],
|
||||
'roles' => ['@'],
|
||||
],
|
||||
@ -125,6 +123,11 @@ class SettingsController extends Controller
|
||||
'actions' => ['confirm'],
|
||||
'roles' => ['?', '@'],
|
||||
],
|
||||
[
|
||||
'allow' => $this->getModule()->enableSessionHistory,
|
||||
'actions' => ['session-history', 'terminate-sessions'],
|
||||
'roles' => ['@'],
|
||||
],
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user