Don't show mail branding menu item unless system.manage_mail_templates is assigned to current user (#3624)
Fixes #3623. Credit to @interworks-morr
This commit is contained in:
parent
000a880742
commit
d52274bbb6
|
|
@ -89,7 +89,7 @@ class ServiceProvider extends ModuleServiceProvider
|
|||
if (Config::get('database.connections.mysql.charset') === 'utf8mb4') {
|
||||
Schema::defaultStringLength(191);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Boot plugins
|
||||
*/
|
||||
|
|
@ -467,7 +467,7 @@ class ServiceProvider extends ModuleServiceProvider
|
|||
'category' => SettingsManager::CATEGORY_MAIL,
|
||||
'icon' => 'icon-paint-brush',
|
||||
'url' => Backend::url('system/mailbrandsettings'),
|
||||
'permissions' => ['system.manage_mail_settings'],
|
||||
'permissions' => ['system.manage_mail_templates'],
|
||||
'order' => 630
|
||||
],
|
||||
'event_logs' => [
|
||||
|
|
|
|||
Loading…
Reference in New Issue