mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fixed sidebar so config item only shows up for admin users. (#1443)
This commit is contained in:
parent
71e66e6d16
commit
1e72c44e49
1 changed files with 9 additions and 9 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue