mirror of
https://github.com/kevin-DL/full-stack-fastapi-postgresql.git
synced 2026-01-15 03:24:47 +00:00
✨ Update all for Postgres and new techniques
This commit is contained in:
@@ -4,7 +4,7 @@ export const getters = {
|
||||
hasAdminAccess: (state: MainState) => {
|
||||
return (
|
||||
state.userProfile &&
|
||||
state.userProfile.admin_roles.includes('superuser'));
|
||||
state.userProfile.is_superuser && state.userProfile.is_active);
|
||||
},
|
||||
loginError: (state: MainState) => state.logInError,
|
||||
dashboardShowDrawer: (state: MainState) => state.dashboardShowDrawer,
|
||||
|
||||
Reference in New Issue
Block a user