🐛 Fix don't show invite user hero to users with editor role

This commit is contained in:
Alejandro Alonso 2023-03-28 10:37:31 +02:00 committed by Alonso Torres
parent 88db456127
commit 694497803b
2 changed files with 8 additions and 2 deletions

View file

@ -362,8 +362,13 @@
(reverse))
recent-map (mf/deref recent-files-ref)
props (some-> profile (get :props {}))
team-hero? (and (:team-hero? props true)
(not (:is-default team)))
you-owner? (get-in team [:permissions :is-owner])
you-admin? (get-in team [:permissions :is-admin])
can-invite? (or you-owner? you-admin?)
team-hero? (and can-invite?
(:team-hero? props true)
(not (:is-default team)))
tutorial-viewed? (:viewed-tutorial? props true)
walkthrough-viewed? (:viewed-walkthrough? props true)