Skip to content

Commit

Permalink
Merge pull request #191 from fluree/fix/auth-prefix-queries
Browse files Browse the repository at this point in the history
  • Loading branch information
cap10morgan authored Jul 22, 2022
2 parents 09995be + 0ba09ae commit 2af09ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/fluree/db/api/ledger.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
permissions (when roles'
(<? (permissions/permission-map db roles' :query)))]
(assoc db :auth auth-sid
:auth-id auth
:roles roles'
:permissions permissions
:ctx ctx))))
Expand Down
2 changes: 1 addition & 1 deletion src/fluree/db/api/query.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@
db sources ;; only support 1 source currently
db* (if block (<? (time-travel/as-of-block (<? db) block)) (<? db))
source-opts (if prefixes
(get-sources (:conn db*) (:network db*) (:auth db*) prefixes)
(get-sources (:conn db*) (:network db*) (:auth-id db*) prefixes)
{})
meta? (:meta opts)
fuel (when (or (:fuel opts) meta?) (volatile! 0)) ;; only measure fuel if fuel budget provided, or :meta true
Expand Down

0 comments on commit 2af09ef

Please sign in to comment.