Open Brannos1970 opened 4 years ago
This happens in a repeatable manner, like all the time?
Yes. I removed the lines from all of the pages and replace them with if statements utilizing the HasPermission business rule and that worked.
I'd recommend looking through the book and ProjectTracker samples. I updated them over the past couple days and am not seeing this issue.
A lot of Blazor packages changed in the last couple previews, and for sure in client-side Blazor it is now necessary to explicitly call AddOptions
during startup.
The BIG THING is that, for client-side Blazor, the private static
method used to initialize per-type rules must now be public static
, because otherwise the linker optimizes the method away during the build process.
Question I have several "AuthorizeView Policy=" statements in my razor pages the utilize the CslaPolicy.GetPolicy as such
` @using Csla.Rules ...