5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 22:51:41 +00:00

renovar la cache del sitio al aceptar o rechazar una invitacion

This commit is contained in:
f 2020-08-20 10:35:02 -03:00
parent 04b0ca6200
commit 1911e4f4d4

View file

@ -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