public void UpdateRole(string role, string[] tasks) { SectionSecurity.Provider.UpdateRoleForSection(role, tasks, this); // reset roles to refresh next time this._roles = null; }
public override RolesTasksDictionary GetRolesForSection(SectionInfo section) { List<SectionRole> dbroles = SectionRole.GetBySectionID(section.Identity); // return list of roles RolesTasksDictionary roles = new RolesTasksDictionary(); foreach (SectionRole role in dbroles) roles.Add( role.Role, role.Tasks.Split(Common.Delimiter) ); return roles; }
public void RemoveRole(string role) { SectionSecurity.Provider.RemoveRoleFromSection(role, this); // reset roles to refresh next time this._roles = null; }