Skip to content

Commit

Permalink
feat(admin-ui): use session permission in the nav menu
Browse files Browse the repository at this point in the history
  • Loading branch information
harryandriyan committed Sep 6, 2022
1 parent 125bc4c commit 6c2737d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin-ui/plugins/auth-server/plugin-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
CLIENT_WRITE,
SCOPE_WRITE,
JWKS_READ,
SESSION_READ,
} from 'Utils/PermChecker'

const PLUGIN_BASE_APTH = '/auth-server'
Expand All @@ -52,7 +53,7 @@ const pluginMetadata = {
{
title: 'menus.sessions',
path: PLUGIN_BASE_APTH + '/sessions',
permission: CLIENT_READ,
permission: SESSION_READ,
},
{
title: 'menus.configuration',
Expand Down Expand Up @@ -91,7 +92,7 @@ const pluginMetadata = {
{
component: SessionListPage,
path: PLUGIN_BASE_APTH + '/sessions',
permission: CLIENT_READ,
permission: SESSION_READ,
},
{
component: ClientListPage,
Expand Down

0 comments on commit 6c2737d

Please sign in to comment.