mirror of
https://github.com/penpot/penpot.git
synced 2026-09-13 15:38:38 +00:00
🐛 Fix error comment message after the demo account creation (#7615)
This commit is contained in:
parent
f32913adcf
commit
6a2029ca3b
@ -291,7 +291,7 @@
|
|||||||
|
|
||||||
(defn- get-unread-comment-threads
|
(defn- get-unread-comment-threads
|
||||||
[cfg profile-id team-id]
|
[cfg profile-id team-id]
|
||||||
(let [profile (-> (db/get cfg :profile {:id profile-id})
|
(let [profile (-> (db/get cfg :profile {:id profile-id} ::db/remove-deleted false)
|
||||||
(profile/decode-row))
|
(profile/decode-row))
|
||||||
notify (or (-> profile :props :notifications :dashboard-comments) :all)
|
notify (or (-> profile :props :notifications :dashboard-comments) :all)
|
||||||
result (case notify
|
result (case notify
|
||||||
|
|||||||
@ -37,14 +37,14 @@
|
|||||||
;; --- Helpers & Specs
|
;; --- Helpers & Specs
|
||||||
|
|
||||||
(def ^:private sql:team-permissions
|
(def ^:private sql:team-permissions
|
||||||
"select tpr.is_owner,
|
"SELECT tpr.is_owner,
|
||||||
tpr.is_admin,
|
tpr.is_admin,
|
||||||
tpr.can_edit
|
tpr.can_edit
|
||||||
from team_profile_rel as tpr
|
FROM team_profile_rel AS tpr
|
||||||
join team as t on (t.id = tpr.team_id)
|
JOIN team AS t ON (t.id = tpr.team_id)
|
||||||
where tpr.profile_id = ?
|
WHERE tpr.profile_id = ?
|
||||||
and tpr.team_id = ?
|
AND tpr.team_id = ?
|
||||||
and t.deleted_at is null")
|
AND t.deleted_at IS NULL")
|
||||||
|
|
||||||
(defn get-permissions
|
(defn get-permissions
|
||||||
[conn profile-id team-id]
|
[conn profile-id team-id]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user