mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 17:46:11 +02:00
✨ Improve input validation in plugins
This commit is contained in:
parent
e13d543dcd
commit
c5c8be4b4a
10 changed files with 120 additions and 40 deletions
|
@ -38,11 +38,17 @@
|
|||
{:name "sessionId"
|
||||
:get (fn [_] (str session-id))})))
|
||||
|
||||
(defn current-user-proxy? [p]
|
||||
(instance? CurrentUserProxy p))
|
||||
|
||||
(defn current-user-proxy
|
||||
[plugin-id session-id]
|
||||
(-> (CurrentUserProxy. plugin-id session-id)
|
||||
(add-user-properties)))
|
||||
|
||||
(defn active-user-proxy? [p]
|
||||
(instance? ActiveUserProxy p))
|
||||
|
||||
(defn active-user-proxy
|
||||
[plugin-id session-id]
|
||||
(-> (ActiveUserProxy. plugin-id session-id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue