mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 04:16:22 +00:00
renovar la cache del sitio al aceptar o rechazar una invitacion
This commit is contained in:
parent
04b0ca6200
commit
1911e4f4d4
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue