feat: actualizar proyecto completo
This commit is contained in:
@@ -58,6 +58,7 @@ interface AuthContextValue {
|
||||
canControlPricingSummary: boolean;
|
||||
canManageTariffCatalog: boolean;
|
||||
canViewTeamHours: boolean;
|
||||
canCreateProjects: boolean;
|
||||
loginWithGoogle: () => Promise<void>;
|
||||
logout: () => Promise<void>;
|
||||
}
|
||||
@@ -204,6 +205,10 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
() => access?.canViewTeamHours === true,
|
||||
[access?.canViewTeamHours],
|
||||
);
|
||||
const canCreateProjects = useMemo(
|
||||
() => access?.canCreateProjects === true,
|
||||
[access?.canCreateProjects],
|
||||
);
|
||||
|
||||
return (
|
||||
<AuthContext.Provider
|
||||
@@ -217,6 +222,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
||||
canControlPricingSummary,
|
||||
canManageTariffCatalog,
|
||||
canViewTeamHours,
|
||||
canCreateProjects,
|
||||
loginWithGoogle,
|
||||
logout,
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user