mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 13:29:07 +00:00
🐛 Fix problem when checking usage with removed teams (#7638)
This commit is contained in:
parent
6a2029ca3b
commit
942e3300dd
@ -74,6 +74,7 @@
|
|||||||
- Fix not controlled theme renaming [Taiga #12411](https://tree.taiga.io/project/penpot/issue/12411)
|
- Fix not controlled theme renaming [Taiga #12411](https://tree.taiga.io/project/penpot/issue/12411)
|
||||||
- Fix paste without selection sends the new element in the back [Taiga #12382](https://tree.taiga.io/project/penpot/issue/12382)
|
- Fix paste without selection sends the new element in the back [Taiga #12382](https://tree.taiga.io/project/penpot/issue/12382)
|
||||||
- Fix options button does not work for comments created in the lower part of the screen [Taiga #12422](https://tree.taiga.io/project/penpot/issue/12422)
|
- Fix options button does not work for comments created in the lower part of the screen [Taiga #12422](https://tree.taiga.io/project/penpot/issue/12422)
|
||||||
|
- Fix problem when checking usage with removed teams [Taiga #12442](https://tree.taiga.io/project/penpot/issue/12442)
|
||||||
|
|
||||||
## 2.10.1
|
## 2.10.1
|
||||||
|
|
||||||
|
|||||||
@ -475,13 +475,17 @@
|
|||||||
p.fullname AS name,
|
p.fullname AS name,
|
||||||
p.email AS email
|
p.email AS email
|
||||||
FROM team_profile_rel AS tpr1
|
FROM team_profile_rel AS tpr1
|
||||||
|
JOIN team as t
|
||||||
|
ON tpr1.team_id = t.id
|
||||||
JOIN team_profile_rel AS tpr2
|
JOIN team_profile_rel AS tpr2
|
||||||
ON (tpr1.team_id = tpr2.team_id)
|
ON (tpr1.team_id = tpr2.team_id)
|
||||||
JOIN profile AS p
|
JOIN profile AS p
|
||||||
ON (tpr2.profile_id = p.id)
|
ON (tpr2.profile_id = p.id)
|
||||||
WHERE tpr1.profile_id = ?
|
WHERE tpr1.profile_id = ?
|
||||||
AND tpr1.is_owner IS true
|
AND tpr1.is_owner IS true
|
||||||
AND tpr2.can_edit IS true")
|
AND tpr2.can_edit IS true
|
||||||
|
AND NOT t.is_default
|
||||||
|
AND t.deleted_at IS NULL")
|
||||||
|
|
||||||
(sv/defmethod ::get-subscription-usage
|
(sv/defmethod ::get-subscription-usage
|
||||||
{::doc/added "2.9"}
|
{::doc/added "2.9"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user