예제 #1
0
        public void Permit <T>(string token, IEnumerable <T> objects)
        {
            var type         = typeof(T);
            var propertyInfo = GetPropertyInfoForType(type);

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