From d607c4238657562969b70edcf8bcbdc4cdb0334f Mon Sep 17 00:00:00 2001 From: kelvinqian00 Date: Tue, 17 Dec 2024 19:10:32 -0500 Subject: [PATCH] Don't plagarize --- src/main/lrsql/util/auth.clj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/lrsql/util/auth.clj b/src/main/lrsql/util/auth.clj index 38d2f4a9..9a00f734 100644 --- a/src/main/lrsql/util/auth.clj +++ b/src/main/lrsql/util/auth.clj @@ -63,6 +63,7 @@ [hierarchy scope] (cset/union #{scope} (ancestors hierarchy scope))) +;; Reference to `apply min-key` solution: https://stackoverflow.com/a/34934286 (defn- get-most-permissive-scope "Return the most permissive scope in `scopes` for `hierarchy`, or `nil` when `scopes` is empty."