     (cpv/validate-parameters
       :acl safe-params
       (concat cpv/common-validations
-              [permitted-group-validation
-               identity-type-validation
-               group-permission-validation
-               boolean-value-validation])
+              [permitted-group-validation identity-type-validation group-permission-validation])
       type-errors))
   params)
 

   :provider :string
   :permitted-user :acl-permitted-user
   :group-permission :acl-group-permission})

(defmethod cp/parse-query-level-params :acl
  [concept-type params]
  (let [[params query-attribs] (cp/default-parse-query-level-params :acl params)
        result-features (when (= (:include-full-acl params) "true"
                                 [:include-full-acl]))]
    [(dissoc params :include-full-acl)
     (merge query-attribs
            (when (= (:include-full-acl params) "true")
              {:result-features [:include-full-acl]}))]))

(defmethod cp/parameter->condition :acl-identity-type
 [context concept-type param value options]

  "Returns true if permission keyword is granted on concept to any sids by given acl."
  [acl permission concept sids]
  (and (acl/acl-matches-sids-and-permission? sids (name permission) acl)
       (if (contains? provider-level-permissions permission)
         (when-let [acl-provider-id (-> acl :provider-object-identity :provider-id)]
           (= acl-provider-id (:provider-id concept)))
         ;; else check that the concept matches
         (case (:concept-type concept)
           :collection (acl-matchers/coll-applicable-acl? (:provider-id concept) concept acl)
           :granule (acl-matches-granule? acl concept)))))

(defn- concept-permissions-granted-by-acls
  "Returns the set of permission keywords (:read, :update, :order, or :delete) granted on concept
   to the seq of group guids by seq of acls."
  [concept sids acls]
  (collect-permissions #(grants-concept-permission? %1 %2 concept sids)
                       acls))

(defn- add-acl-enforcement-fields
  "Adds all fields necessary for comparing concept map against ACLs."
