From 051266dabb082e7e7b0c50761de366dab76adfd3 Mon Sep 17 00:00:00 2001 From: Oliver Kraitschy Date: Thu, 8 Nov 2018 10:58:32 +0100 Subject: [PATCH] Clear db cache on startup --- config/initializers/roles.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/initializers/roles.rb b/config/initializers/roles.rb index b85d8eb..901723d 100644 --- a/config/initializers/roles.rb +++ b/config/initializers/roles.rb @@ -1,4 +1,6 @@ case GenieacsGui::Application.config.auth_method +when :db + GenieacsGui::ApplicationController.new.clear_permissions_cache when :yml GenieacsGui::Application.config.permissions = YAML.load_file('config/roles.yml') GenieacsGui::Application.config.users = YAML.load_file('config/users.yml')