mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 05:16:21 +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
|
||||
|
||||
def accept_invitation?
|
||||
su = site_usuarie
|
||||
(usuarie? || invitade?) && su.usuarie.rol_for_site(su.site).temporal
|
||||
!!site_usuarie.usuarie.rol_for_site(site_usuarie.site)&.temporal
|
||||
end
|
||||
|
||||
def reject_invitation?
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
= site.title
|
||||
%p.lead= site.description
|
||||
%br
|
||||
.d-flex.flex-row
|
||||
= link_to t('.visit'), site.url, class: 'btn btn-secondary'
|
||||
- if current_usuarie.rol_for_site(site).temporal?
|
||||
= render 'components/btn_base',
|
||||
|
|
Loading…
Reference in a new issue