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)
|
||||
{
|
||||
var data = _set
|
||||
.Include(gc => gc.RootPermission)
|
||||
.FirstOrDefault(gc => gc.GuildId == guildId);
|
||||
var data = PermissionsFor(guildId);
|
||||
|
||||
data.RootPermission.Prepend(p);
|
||||
data.RootPermission = p;
|
||||
|
Loading…
Reference in New Issue
Block a user