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')