This project is read-only.

Roles, excluding members to edit.

Topics: Controls
Oct 13, 2007 at 1:05 PM
**please advice**

Today I made a new role called 'members'. Now, I would like to ecxlude this role from editing and deleting post-items. But, I do not know how to beacaus ALL authenticated users have this option.

I think the awnsers is in the page.aspx.cs to add a line off code under the line: (sysmtem.Threading...autheticated) But, I don't know how.

So please advice herein.

Rgds, Wouter.

/// Gets the admin links to edit and delete a page.
/// </summary>
/// <value>The admin links.</value>
public string AdminLinks
if (System.Threading.Thread.CurrentPrincipal.Identity.IsAuthenticated)
****( If Roles.Name("administrators, editors") = True Then)******************************Need line off code to exclude members******************************
StringBuilder sb = new StringBuilder();
sb.AppendLine("<div id=\"admin\">");
Nov 20, 2007 at 10:21 PM
I've just posted the following thread to answer most of this question.
Nov 22, 2007 at 2:22 AM

please see the reply I posted at