Ejemplo n.º 1
0
        public bool HasPermission <T>(string token, IEnumerable <T> objects)
        {
            var type         = typeof(T);
            var propertyInfo = GetPropertyInfoForType(type);

            return(_permissionStore.HasPermission <T>(token,
                                                      objects.Select(x => propertyInfo.GetValue(x, null) as string), DefaultPermissionSetName));
        }