Re: Who's this admin guy anyway?

  •  04-20-2006, 2:01 PM

    Re: Who's this admin guy anyway?

    DOug,
     
    You need to implement your own methods based on your project to detect the current user security role:
     

       string userrole= GetSecurityRoleFromYourAPP();
       switch(userrole)
       {
        case "Administrators":
         Editor1.SecurityPolicyFile  = "Admin.config";
         SetUploadsFolder("~/Uploads/");
         break;
        case "Members":
         Editor1.SecurityPolicyFile  = "default.config";
         SetUploadsFolder("~/Uploads/Member/");
         break;
        case "Guest":
         Editor1.SecurityPolicyFile  = "Guest.config";
         SetUploadsFolder("~/Uploads/Guest/");
         break;
      //  case "Banned":
      //   Editor1.ReadOnly = true;
      //   break;

         case "John":
         Editor1.SecurityPolicyFile  = "Admin.config";
         SetUploadsFolder("~/Uploads/Users/John/");
         break;
        case "Mary":
         Editor1.SecurityPolicyFile  = "default.config";
         SetUploadsFolder("~/Uploads/Users/Mary/");
         break;
        case "Tim":
         Editor1.SecurityPolicyFile  = "default.config";
         SetUploadsFolder("~/Uploads/Users/Tim/");
         break;
       }
     
    Keep me posted
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View Complete Thread