mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 03:01: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
|
||||
[app.common.data :as d]
|
||||
[app.common.data.macros :as dm]
|
||||
[app.common.exceptions :as ex]
|
||||
[app.common.logging :as log]
|
||||
[app.common.schema :as sm]
|
||||
[app.common.types.team :as ctt]
|
||||
|
@ -118,8 +119,10 @@
|
|||
(let [team-id (:current-team-id state)
|
||||
teams (get state :teams)
|
||||
team (get teams team-id)]
|
||||
(rx/of (set-current-team team)
|
||||
(fetch-members))))))
|
||||
(if (not team)
|
||||
(rx/throw (ex/error :type :authentication))
|
||||
(rx/of (set-current-team team)
|
||||
(fetch-members)))))))
|
||||
|
||||
(defn initialize-team
|
||||
[team-id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue