mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-15 19:29:54 +02:00
Show assigned groups for users in the system
Update the API to include user groups in the user data endpoint and add frontend logging for user details. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 31f9bd88-0285-4787-81b3-31ceeea5a08b Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/31f9bd88-0285-4787-81b3-31ceeea5a08b/7ff921U
This commit is contained in:
1 parent
4d118328de
commit
cd436070cd
2 files changed
+34
-11
No files matched your search
@@ -68,6 +68,16 @@ export function CustomerOrderForm({
|
||||
const { user } = useAuthUnified();
|
||||
const { selectedStoreId } = useStore();
|
||||
|
||||
// DEBUG: Log user data to see what we actually receive
|
||||
console.log("🔍 FRONTEND USER DEBUG:", {
|
||||
user: user,
|
||||
userRole: user?.role,
|
||||
userGroups: user?.userGroups,
|
||||
userGroupsType: typeof user?.userGroups,
|
||||
userGroupsLength: user?.userGroups?.length,
|
||||
fullUserObject: JSON.stringify(user, null, 2)
|
||||
});
|
||||
|
||||
// Fetch groups for store selection
|
||||
const { data: groups = [] } = useQuery<Group[]>({
|
||||
queryKey: ['/api/groups'],
|
||||
|
||||
Reference in new issue
Block a user