volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Rättigheter

Kan jag via EPiServer.Security klassen få vilka rättigheter den inloggade användaren har på en sida? (Gömma eller visa viss funktionalitet). Isåfall hur? /Jonas
#11978
Aug 18, 2003 16:01
Kolla in Conferance.aspx.cs i exempelmallarna. Där finns exempel på hur man kan använda ACL:en på nuvarande sida för att kontrollera vilka rättigheter en användare har på nuvarande sida. Kodmässigt kan det se ut som exemplet nedan: MyButton.Visible = CurrentPage.ACL.QueryDistinctAccess(AccessLevel.Publish | AccessLevel.Delete);
#13482
Aug 18, 2003 17:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.