mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 04:51:39 +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
|
@ -58,6 +58,7 @@
|
||||||
- Fix problem with color picker not able to change hue [Taiga #5065](https://tree.taiga.io/project/penpot/issue/5065)
|
- Fix problem with color picker not able to change hue [Taiga #5065](https://tree.taiga.io/project/penpot/issue/5065)
|
||||||
- Fix problem with outer stroke in texts [Taiga #5078](https://tree.taiga.io/project/penpot/issue/5078)
|
- Fix problem with outer stroke in texts [Taiga #5078](https://tree.taiga.io/project/penpot/issue/5078)
|
||||||
- Fix problem with text carring over next line when changing to fixed [Taiga #5067](https://tree.taiga.io/project/penpot/issue/5067)
|
- Fix problem with text carring over next line when changing to fixed [Taiga #5067](https://tree.taiga.io/project/penpot/issue/5067)
|
||||||
|
- Fix don't show invite user hero to users with editor role [Taiga #5086](https://tree.taiga.io/project/penpot/issue/5086)
|
||||||
|
|
||||||
### :heart: Community contributions by (Thank you!)
|
### :heart: Community contributions by (Thank you!)
|
||||||
- To @ondrejkonec: for contributing to the code with:
|
- To @ondrejkonec: for contributing to the code with:
|
||||||
|
|
|
@ -362,8 +362,13 @@
|
||||||
(reverse))
|
(reverse))
|
||||||
recent-map (mf/deref recent-files-ref)
|
recent-map (mf/deref recent-files-ref)
|
||||||
props (some-> profile (get :props {}))
|
props (some-> profile (get :props {}))
|
||||||
team-hero? (and (:team-hero? props true)
|
you-owner? (get-in team [:permissions :is-owner])
|
||||||
(not (:is-default team)))
|
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)
|
tutorial-viewed? (:viewed-tutorial? props true)
|
||||||
walkthrough-viewed? (:viewed-walkthrough? props true)
|
walkthrough-viewed? (:viewed-walkthrough? props true)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue