I using umbraco 7.1.4 and have some issues with members and login.
When not logged in Umbraco.MemberHasAccess(page.Id,page.Url) works as expected when iterating through a collection of nodes, but when a user is logged in, I get the folloiwing error:
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 22: }
Line 23:
Line 24: @Umbraco.MemberHasAccess(page.Id,page.Url)
Line 25:
Line 26: }
Trouble with Umbraco.MemberHasAccess...
Hi,
I using umbraco 7.1.4 and have some issues with members and login.
When not logged in Umbraco.MemberHasAccess(page.Id,page.Url) works as expected when iterating through a collection of nodes, but when a user is logged in, I get the folloiwing error:
Exception Details: System.FormatException: Input string was not in a correct format.
Source Error:
Line 22: } Line 23: Line 24: @Umbraco.MemberHasAccess(page.Id,page.Url) Line 25: Line 26: }
Stack Trace:
The user is member of a group that has access to a protected page in the collection.
I'm using the built in login snippet. Am I missing something??
/ulrich
Hi ulrich,
Have you tried @Umbraco.MemberHasAccess(page.id, page.path) ?
Alain, this just fixed it for me :)
is working on a reply...