# Keine Abzeichen für nicht existierende Benutzer vergeben?

**URL:** <https://meta.discourse.org/t/dont-grant-badges-to-users-who-dont-exist/185700>\
**Category:** Bug\
**Created:** [5. April 2021 um 21:28 UTC](https://meta.discourse.org/t/dont-grant-badges-to-users-who-dont-exist/185700 "2021-04-05T21:28:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [6. April 2021 um 03:06 UTC](https://meta.discourse.org/t/dont-grant-badges-to-users-who-dont-exist/185700/4 "2021-04-06T03:06:13Z")

</div>

Hmmm… hier stimmt etwas nicht, denn:

> <https://github.com/discourse/discourse/blob/dc6b547ed89f652b5406489d76140b76cf8e0d1d/app/models/user.rb#L30-L30>

Das Grant-Objekt verknüpft bereits mit dem Benutzer, es muss die Benutzer-ID also von irgendwoher beziehen.

Ich frage mich, ob die Scoping-Methode hier bedeutet, dass „dependent destroy

---

_[View the full topic](https://meta.discourse.org/t/dont-grant-badges-to-users-who-dont-exist/185700)._
