Skip to content

Commit

Permalink
front: Initialize hasRequiredRoles with true in useCheckUserRole hook
Browse files Browse the repository at this point in the history
  • Loading branch information
kmer2016 committed Jul 1, 2024
1 parent 35d4a77 commit aa62516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/src/modules/authorization/hooks/useCheckUserRole.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const useCheckUserRole = (requiredRoles: string[]) => {
const userRoles: string[] = [];

// TODO AUTH: initialize hasRequiredRoles with false when user roles are implemented
const [hasRequiredRoles, setHasRequiredRoles] = useState(false);
const [hasRequiredRoles, setHasRequiredRoles] = useState(true);

useEffect(() => {
// TODO AUTH: uncomment when user roles are implemented
Expand Down

0 comments on commit aa62516

Please sign in to comment.