I am trying to Display Lock or Unlock Images on Searched Documents by passing Session.UserRights.
Not sure why my code is display just Unlock Images for all documents. Seems like my code is not able to pass UserRights Properly. Can someone please help look at my code what i am doing wrong.
Thanks
[/Code]bool hasAccess = false;
if (Session.UserRights != null)
{
if(EngineClient.UserHasAccess(Session.UserRights, doc.AccessList1, doc.AccessList2, doc.DeniedList1))
{
hasAccess= true;
}
}
if (hasAccess = false)
{
%>

<%
}else
{
%>

<%
}
%>[/Code]
Replies
Know the answer? Post it — somebody with the same question will find it here.