Restrict access to the Email admin tab to Admins
This commit is contained in:
parent
ecd93f7efb
commit
3aaa9a8722
|
@ -13,8 +13,8 @@
|
|||
{{/if}}
|
||||
{{#if currentUser.admin}}
|
||||
{{nav-item route='adminGroups' label='admin.groups.title'}}
|
||||
{{nav-item route='adminEmail' label='admin.email.title'}}
|
||||
{{/if}}
|
||||
{{nav-item route='adminEmail' label='admin.email.title'}}
|
||||
{{nav-item route='adminFlags' label='admin.flags.title'}}
|
||||
{{nav-item route='adminLogs' label='admin.logs.title'}}
|
||||
{{#if currentUser.admin}}
|
||||
|
|
|
@ -113,7 +113,7 @@ Discourse::Application.routes.draw do
|
|||
|
||||
resources :impersonate, constraints: AdminConstraint.new
|
||||
|
||||
resources :email do
|
||||
resources :email, constraints: AdminConstraint.new do
|
||||
collection do
|
||||
post "test"
|
||||
get "all"
|
||||
|
|
Loading…
Reference in New Issue