Fixed permission bug
This commit is contained in:
parent
2f8511c401
commit
477071640f
@ -122,9 +122,7 @@ namespace NadekoBot.Services.Database.Repositories.Impl
|
|||||||
|
|
||||||
public GuildConfig SetNewRootPermission(ulong guildId, Permission p)
|
public GuildConfig SetNewRootPermission(ulong guildId, Permission p)
|
||||||
{
|
{
|
||||||
var data = _set
|
var data = PermissionsFor(guildId);
|
||||||
.Include(gc => gc.RootPermission)
|
|
||||||
.FirstOrDefault(gc => gc.GuildId == guildId);
|
|
||||||
|
|
||||||
data.RootPermission.Prepend(p);
|
data.RootPermission.Prepend(p);
|
||||||
data.RootPermission = p;
|
data.RootPermission = p;
|
||||||
|
Loading…
Reference in New Issue
Block a user