# SSO принудительно создает пользователя как администратора

**URL:** <https://meta.discourse.org/t/sso-is-forcibly-creating-the-user-as-an-admin/203386>\
**Category:** Bug\
**Created:** [13.Сентябрь.2021 12:29:21 UTC](https://meta.discourse.org/t/sso-is-forcibly-creating-the-user-as-an-admin/203386 "2021-09-13T12:29:21Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![ohm-s](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ohm-s/32/215705_2.png) [@ohm-s](https://meta.discourse.org/u/ohm-s)\
**Post date:** [14.Сентябрь.2021 12:20:51 UTC](https://meta.discourse.org/t/sso-is-forcibly-creating-the-user-as-an-admin/203386/11 "2021-09-14T12:20:51Z")

</div>

![notifications-fix-code](https://global.discourse-cdn.com/meta/original/3X/2/7/27a66f2ab6bf23bd3505623ce5d8299c96fe4c79.jpeg)

Похоже, что `user.notifications` не применяет фильтр. Я вручную добавил условие `where` в код, и это исправило отображение уведомлений в модальном окне, но на странице деталей используется другой путь выполнения кода, поэтому там всё ещё отображается всё. В чём реальное решение? 😑

---

_[View the full topic](https://meta.discourse.org/t/sso-is-forcibly-creating-the-user-as-an-admin/203386)._
