Could someone advise me about how can I restrict access to 'Admin' and/or 'Edit' modes from the code depending on the current user's membership? I know which roles shouldn't have access to 'Admin' mode at all, even if this mode is referenced by manually entered URL - but I cannot understand the way to implement this.
You should use the web.config file settings to restrict access to edit and admin mode. Go to the <location path="editUI"> and configure access in the <allow roles="WebEditors, WebAdmins, Administrators" /> line. You should enter the roles that should have access to the editUI path, and then do the same for the editUI/admin path.
Hello!
Could someone advise me about how can I restrict access to 'Admin' and/or 'Edit' modes from the code depending on the current user's membership? I know which roles shouldn't have access to 'Admin' mode at all, even if this mode is referenced by manually entered URL - but I cannot understand the way to implement this.