diff --git a/app/controllers/usuaries_controller.rb b/app/controllers/usuaries_controller.rb index 529d8be5..deaa7a78 100644 --- a/app/controllers/usuaries_controller.rb +++ b/app/controllers/usuaries_controller.rb @@ -106,7 +106,7 @@ class UsuariesController < ApplicationController @site = find_site authorize SiteUsuarie.new(@site, current_usuarie) - current_usuarie.rol_for_site(@site).update_attribute :temporal, false + @site.touch if current_usuarie.rol_for_site(@site).update_attribute :temporal, false redirect_to sites_path end @@ -116,7 +116,7 @@ class UsuariesController < ApplicationController @site = find_site authorize SiteUsuarie.new(@site, current_usuarie) - current_usuarie.rol_for_site(@site).destroy + @site.touch if current_usuarie.rol_for_site(@site).destroy redirect_to sites_path end