mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 17:31:38 +02:00
🐛 Fix problem with team permissions redirection (#5839)
This commit is contained in:
parent
6b26adb187
commit
fb0e22c16b
1 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,7 @@
|
||||||
(:require
|
(:require
|
||||||
[app.common.data :as d]
|
[app.common.data :as d]
|
||||||
[app.common.data.macros :as dm]
|
[app.common.data.macros :as dm]
|
||||||
|
[app.common.exceptions :as ex]
|
||||||
[app.common.logging :as log]
|
[app.common.logging :as log]
|
||||||
[app.common.schema :as sm]
|
[app.common.schema :as sm]
|
||||||
[app.common.types.team :as ctt]
|
[app.common.types.team :as ctt]
|
||||||
|
@ -118,8 +119,10 @@
|
||||||
(let [team-id (:current-team-id state)
|
(let [team-id (:current-team-id state)
|
||||||
teams (get state :teams)
|
teams (get state :teams)
|
||||||
team (get teams team-id)]
|
team (get teams team-id)]
|
||||||
(rx/of (set-current-team team)
|
(if (not team)
|
||||||
(fetch-members))))))
|
(rx/throw (ex/error :type :authentication))
|
||||||
|
(rx/of (set-current-team team)
|
||||||
|
(fetch-members)))))))
|
||||||
|
|
||||||
(defn initialize-team
|
(defn initialize-team
|
||||||
[team-id]
|
[team-id]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue