This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am ithielnor on github. | |
* I am ithi (https://keybase.io/ithi) on keybase. | |
* I have a public key ASBwhBh3YggXQ8VU7cQy7ICjJ6rCy9AYUhvnHMBnAuuBswo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @assc int; set @assc = 2000; | |
declare @org int; set @org = 3000; | |
declare @orgkey varchar; select @orgkey = keychain from m3_unionfusion_smw28.dbo.CON_Organization where Id = @org; | |
declare @uc bigint; select @uc = systemuserid from m3_unionfusion_smw28.dbo.Cor_Association where Id = @assc | |
declare @minid bigint; select @minid = m3_unionfusion_smw28.dbo.MinLineItemId(); | |
; | |
with x as | |
(select max(invoicelineitemid) maxid from import_membership_buildingtrades.dbo.invoicelineitem group by invoiceid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var actionLevelAttributes = actionDescriptor.GetFilterAttributes(true); | |
var controllerLevelAttributes = controllerType.GetCustomAttributes(true); | |
var assocAttribute = actionLevelAttributes.OfType<AssociationAttribute>().Union(controllerLevelAttributes.OfType<AssociationAttribute>()).FirstOrDefault(); | |
var moduleAttribute = actionLevelAttributes.OfType<ModuleAttribute>().Union(controllerLevelAttributes.OfType<ModuleAttribute>()).FirstOrDefault(); | |
var permissionAttribute = actionLevelAttributes.OfType<RequiresPermissionAttribute>().Union(controllerLevelAttributes.OfType<RequiresPermissionAttribute>()).FirstOrDefault(); | |
if ((assocAttribute != null && !assocAttribute.Authorized()) | |
|| (moduleAttribute != null && !moduleAttribute.Authorized()) | |
|| (permissionAttribute != null && !permissionAttribute.Authorized())) |