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:
maranqz
2019-11-30 17:52:24 +03:00
parent be2b495c9e
commit b7d2cf42ac
13 changed files with 31 additions and 15 deletions

View File

@ -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'],

View File

@ -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' => ['@'],
],
],
],
];