Fixed sidebar so config item only shows up for admin users. (#1443)

This commit is contained in:
John Murphy 2017-03-23 09:48:48 -05:00 committed by GitHub
parent 71e66e6d16
commit 1e72c44e49

View file

@ -1,5 +1,14 @@
export default (admin) => {
const adminNavItems = [
{
icon: 'config',
name: 'Config',
location: {
regex: /^\/config/,
pathname: '/config/options',
},
subItems: [],
},
{
icon: 'admin',
name: 'Admin',
@ -90,15 +99,6 @@ export default (admin) => {
},
],
},
{
icon: 'config',
name: 'Config',
location: {
regex: /^\/config/,
pathname: '/config/options',
},
subItems: [],
},
{
icon: 'help',
name: 'Help',