public List<PermissionInfo> GetPermissions(object o) { TypeInfo ti = _Framework.GetTypeInfoByTypeName(o.GetType().FullName); List<PermissionInfo> list = new List<PermissionInfo>(); if (ti != null) foreach (PermissionInfo info in ti.Permissions) { bool access = RawHasPermission(o, info.PermissionName); PermissionInfo pi = new PermissionInfo(info.PermissionName, access); list.Add(pi); } return list; }
public List <PermissionInfo> GetPermissions(object o) { TypeInfo ti = _Framework.GetTypeInfoByTypeName(o.GetType().FullName); List <PermissionInfo> list = new List <PermissionInfo>(); if (ti != null) { foreach (PermissionInfo info in ti.Permissions) { bool access = RawHasPermission(o, info.PermissionName); PermissionInfo pi = new PermissionInfo(info.PermissionName, access); list.Add(pi); } } return(list); }
public TypePermissionInformation(Framework fw, TypeInfo ti, PermissionInfo pi, Role ar, bool isInherited) { SecurityFramework = fw; TypeInfo = ti; PermissionInfo = pi; ActualRole = ar; IsInherited = isInherited; }
public ObjectPermissionInformation(Framework fw, object obj, PermissionInfo pi, Role ar, bool isInherited) { SecurityFramework = fw; Obj = obj; PermissionInfo = pi; ActualRole = ar; IsInherited = isInherited; }