fix(profile): редактирование профиля через PUT /v1/admin/me

Self-edit доступен всем ролям без PUT /admins/:id.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 17:54:23 +03:00
parent fd825ddfd7
commit bc20deac23
4 changed files with 59 additions and 37 deletions
+3
View File
@@ -13,6 +13,7 @@ interface AuthState {
login: (email: string, password: string) => Promise<void>;
logout: () => Promise<void>;
checkAuth: () => Promise<void>;
setUser: (user: Admin) => void;
}
export const useAuthStore = create<AuthState>((set) => ({
@@ -69,4 +70,6 @@ export const useAuthStore = create<AuthState>((set) => ({
});
}
},
setUser: (user) => set({ user }),
}));