Esempio n. 1
0
        protected Items.UserList CreateUserContainer(ContentItem parent)
        {
            Items.UserList m = activator.CreateInstance <Items.UserList>(parent);
            m.Title = "Users";
            m.Name  = UserContainerName;
            foreach (string role in DefaultRoles)
            {
                m.AddRole(role);
            }

            Save(m);
            return(m);
        }
Esempio n. 2
0
 public override void CreateRole(string roleName)
 {
     Items.UserList ul = Bridge.GetUserContainer(true);
     ul.AddRole(roleName);
     Bridge.Save(ul);
 }