CodeGarden 10: The sixth annual Umbraco Developer Conference
June 23-25th 2010 - free ASP.NET MVC pre-conference. Register today!

node is using public access role based protection but getprotectiontype returns notprotected

2/9/2010 12:24:04 AMAvatarTomLocation: Sydney, Australiaposts: 62Karma: 82

Hi All,

I'm filtering some search results based on protected nodes and came accross something strange:

if (!Access.IsProtected(currentNode.Id, currentNode.Path) || Access.GetProtectionType(currentNode.Id) == ProtectionType.NotProtected)

 

is this instance Access.IsProtected is true but Access.GetProtectionType returns NotProtected..

 

any thoughts as to why this would occur?

Please login or Sign up To post replies