Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Checking for higher AccessLevel than AccessLevel.Read returns unexpected results

Found in

EPiServer.CMS.Core 10.0.1

Fixed in

EPiServer.CMS.Core 10.1.0

(Or a related package)

Created

Nov 07, 2016

Updated

Nov 14, 2016

Area

CMS Core

State

Closed, Fixed and tested


Description

If you have an unpublished content item and you check for access level higher than AccessLevel.Read using IContentAccessEvaluator.HasAccess, you always get _true _back if the user has more access than AccessLevel.Read, regardless of the access level you ask for.