Update:Only show podcast search page for admin or up #225

This commit is contained in:
advplyr
2022-12-08 17:56:58 -06:00
parent 379fa21571
commit b521f37ec1
2 changed files with 11 additions and 4 deletions
+1
View File
@@ -16,6 +16,7 @@ export const state = () => ({
export const getters = {
getIsRoot: (state) => state.user && state.user.type === 'root',
getIsAdminOrUp: (state) => state.user && (state.user.type === 'admin' || state.user.type === 'root'),
getToken: (state) => {
return state.user ? state.user.token : null
},