diff options
author | George Goldberg <george@gberg.me> | 2018-04-18 10:18:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 10:18:07 +0100 |
commit | b13a228b0451098ea32933a36fe64566e366583d (patch) | |
tree | 569aa0c6c5f273b806b4c3e0c59801204916492c /store/layered_store.go | |
parent | a1882d4004ce624dad1b8624804e974f209efe8d (diff) | |
download | chat-b13a228b0451098ea32933a36fe64566e366583d.tar.gz chat-b13a228b0451098ea32933a36fe64566e366583d.tar.bz2 chat-b13a228b0451098ea32933a36fe64566e366583d.zip |
MM-10121: CLI command to reset permissions system to default state. (#8637)
* MM-10121: CLI command to reset permissions system to default state.
* Review comment.
Diffstat (limited to 'store/layered_store.go')
-rw-r--r-- | store/layered_store.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/store/layered_store.go b/store/layered_store.go index cac0f61d3..5ef907260 100644 --- a/store/layered_store.go +++ b/store/layered_store.go @@ -252,3 +252,9 @@ func (s *LayeredRoleStore) GetByNames(names []string) StoreChannel { return supplier.RoleGetByNames(s.TmpContext, names) }) } + +func (s *LayeredRoleStore) PermanentDeleteAll() StoreChannel { + return s.RunQuery(func(supplier LayeredStoreSupplier) *LayeredStoreSupplierResult { + return supplier.RolePermanentDeleteAll(s.TmpContext) + }) +} |