Commit 8dff70c17 for imagemagick.org

commit 8dff70c173f3010e88fa2163b710de0799fdb79e
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Thu Sep 24 19:45:12 2026 -0400

    https://github.com/ImageMagick/ImageMagick/issues/8972

diff --git a/MagickCore/policy.c b/MagickCore/policy.c
index b15dc0e36..5255be795 100644
--- a/MagickCore/policy.c
+++ b/MagickCore/policy.c
@@ -908,8 +908,7 @@ MagickExport MagickBooleanType IsRightsAuthorizedByName(
           If this match was against a canonical form, accumulate allowed rights.
         */
         canonical_matched_any=MagickTrue;
-        canonical_allowed_accumulator=(PolicyRights) ((int)
-          canonical_allowed_accumulator & (int) policy->rights);
+        canonical_allowed_accumulator=policy->rights;
       }
   }
   UnlockSemaphoreInfo(policy_semaphore);