mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Make sure a tab is defined always - Refs #1397
This commit is contained in:
parent
0aaeaf7406
commit
917cfd437f
@ -144,7 +144,10 @@ class AuthManager extends RainAuthManager
|
||||
$tabs = [];
|
||||
|
||||
foreach ($this->listPermissions() as $permission) {
|
||||
$tab = isset($permission->tab) ? $permission->tab : null;
|
||||
$tab = isset($permission->tab)
|
||||
? $permission->tab
|
||||
: 'backend::lang.form.undefined_tab';
|
||||
|
||||
if (!array_key_exists($tab, $tabs)) {
|
||||
$tabs[$tab] = [];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user