Use lower level Guild.owner_id for permission resolution.
This commit is contained in:
parent
91f1f430e1
commit
562580a07f
@ -418,8 +418,7 @@ class GuildChannel:
|
|||||||
# The operation first takes into consideration the denied
|
# The operation first takes into consideration the denied
|
||||||
# and then the allowed.
|
# and then the allowed.
|
||||||
|
|
||||||
o = self.guild.owner
|
if self.guild.owner_id == member.id:
|
||||||
if o is not None and member.id == o.id:
|
|
||||||
return Permissions.all()
|
return Permissions.all()
|
||||||
|
|
||||||
default = self.guild.default_role
|
default = self.guild.default_role
|
||||||
|
@ -432,7 +432,7 @@ class Member(discord.abc.Messageable, _BaseUser):
|
|||||||
administrator implication.
|
administrator implication.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.guild.owner == self:
|
if self.guild.owner_id == self.id:
|
||||||
return Permissions.all()
|
return Permissions.all()
|
||||||
|
|
||||||
base = Permissions.none()
|
base = Permissions.none()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user