Skip to content

Commit

Permalink
merge master
Browse files Browse the repository at this point in the history
  • Loading branch information
lgessler committed Mar 13, 2024
2 parents 9d3aeaa + 4006d3d commit ef08632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/glam/models/auth.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
(def user-required (make-auth-transform (partial level-authorized :user) "valid login required"))

(defn ident-locked? [env ident]
(let [user-id (get-in env [:ring/request :session :user/id])]
(let [user-id (:user/id (get-session env))]
(access/ident-locked? (:node env) user-id ident)))

(defn lock-holder-name [{:keys [node]} ident]
Expand Down
3 changes: 2 additions & 1 deletion src/main/glam/xtdb/span_layer.clj
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@
(gxc/add-join** node span-layer-id :span-layer/relation-layers relation-layer-id))

(gxe/deftx remove-relation-layer [node span-layer-id relation-layer-id]
(gxc/remove-join** node span-layer-id :span-layer/relation-layers relation-layer-id))
(gxc/remove-join** node span-layer-id :span-layer/relation-layers relation-layer-id))

0 comments on commit ef08632

Please sign in to comment.