Permissions bugs fixed?

This commit is contained in:
Kwoth 2017-03-16 12:31:57 +01:00
parent 07a9e9788e
commit 7f07508c7c

View File

@ -161,7 +161,7 @@ namespace NadekoBot.Modules.Permissions
{ {
using (var uow = DbHandler.UnitOfWork()) using (var uow = DbHandler.UnitOfWork())
{ {
var config = uow.GuildConfigs.For(Context.Guild.Id, set => set); var config = uow.GuildConfigs.For(Context.Guild.Id, set => set.Include(x => x.Permissions));
config.VerbosePermissions = action.Value; config.VerbosePermissions = action.Value;
await uow.CompleteAsync().ConfigureAwait(false); await uow.CompleteAsync().ConfigureAwait(false);
UpdateCache(config); UpdateCache(config);