mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
Restrict access to the Email admin tab to Admins
This commit is contained in:
parent
ecd93f7efb
commit
3aaa9a8722
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue