Browse Source

fix(scopes): role check for sentry:events_member_admin (#46089)

Cathy Teng 2 years ago
parent
commit
c3c9af4d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/sentry/models/organization.py

+ 1 - 1
src/sentry/models/organization.py

@@ -674,7 +674,7 @@ class Organization(Model, SnowflakeIdMixin):
         return "".join(parts)
 
     def get_scopes(self, role: Role) -> FrozenSet[str]:
-        if role.priority > 0:
+        if role.id != "member":
             return role.scopes
 
         scopes = set(role.scopes)