|
|
@ -1,6 +1,6 @@ |
|
|
|
'use strict'; |
|
|
|
|
|
|
|
const isAuthorized = (authcode) => { |
|
|
|
export const isAuthorized = (authcode) => { |
|
|
|
if (JSON.parse(sessionStorage.getItem('user'))) { |
|
|
|
const { resources } = JSON.parse(sessionStorage.getItem('user')); |
|
|
|
return resources.includes(authcode); |
|
|
@ -8,7 +8,3 @@ const isAuthorized = (authcode) => { |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
export default{ |
|
|
|
isAuthorized |
|
|
|
} |