diff --git a/backend/controllers/authController.js b/backend/controllers/authController.js index ae39489..2a65203 100644 --- a/backend/controllers/authController.js +++ b/backend/controllers/authController.js @@ -223,6 +223,7 @@ const getMe = async (req, res, next) => { photos: req.user.photos, location: req.user.location, preferences: req.user.preferences, + isAdmin: req.user.isAdmin || false, // Добавляем информацию об административных правах createdAt: req.user.createdAt, updatedAt: req.user.updatedAt, });