mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 04:32:23 +02:00
🐛 Fix don't show invite user hero to users with editor role
This commit is contained in:
parent
88db456127
commit
694497803b
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue