mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:36:22 +00:00
Merge branch 'issue-15154' of 0xacab.org:sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
66045beb1c
2 changed files with 29 additions and 29 deletions
|
@ -36,8 +36,7 @@ class SiteUsuariePolicy
|
||||||
end
|
end
|
||||||
|
|
||||||
def accept_invitation?
|
def accept_invitation?
|
||||||
su = site_usuarie
|
!!site_usuarie.usuarie.rol_for_site(site_usuarie.site)&.temporal
|
||||||
(usuarie? || invitade?) && su.usuarie.rol_for_site(su.site).temporal
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def reject_invitation?
|
def reject_invitation?
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
= site.title
|
= site.title
|
||||||
%p.lead= site.description
|
%p.lead= site.description
|
||||||
%br
|
%br
|
||||||
|
.d-flex.flex-row
|
||||||
= link_to t('.visit'), site.url, class: 'btn btn-secondary'
|
= link_to t('.visit'), site.url, class: 'btn btn-secondary'
|
||||||
- if current_usuarie.rol_for_site(site).temporal?
|
- if current_usuarie.rol_for_site(site).temporal?
|
||||||
= render 'components/btn_base',
|
= render 'components/btn_base',
|
||||||
|
|
Loading…
Reference in a new issue