I hereby claim:
- I am cvallance on github.
- I am cvallance (https://keybase.io/cvallance) on keybase.
- I have a public key ASCbIRUFfhpY9XX_WY9YhdI9BsjewSy_YNQmorcJofh9qwo
To claim this, I am signing this object:
Delivered-To: my.email.address@gmail.com | |
Received: by 2002:a17:90a:4814:0:0:0:0 with SMTP id a20-v6csp764763pjh; | |
Thu, 8 Nov 2018 13:32:03 -0800 (PST) | |
X-Google-Smtp-Source: AJdET5dCSMaic5qPsP/1AoKMvllpaFMbeGXsUxqRSqsjq6vdre+y+w7o6yB+7Kyl5IVcUfo7gGq3 | |
X-Received: by 2002:a63:460a:: with SMTP id t10-v6mr5181900pga.197.1541712723121; | |
Thu, 08 Nov 2018 13:32:03 -0800 (PST) | |
ARC-Seal: i=1; a=rsa-sha256; t=1541712723; cv=none; | |
d=google.com; s=arc-20160816; | |
b=GHdNPQtQ8vp5H9fMnxGGXDmwIiwUQa8R5tf6j0RVNIEdPaYJ4Ol1AU3DnY1nx/6o7N | |
brz5coWEmSX1RVdskvc7HQFEZZAdn2SYt/3qKM4Hjb+n93BotUSkrgoxiqX4z12wbc3o |
I hereby claim:
To claim this, I am signing this object:
### Keybase proof | |
I hereby claim: | |
* I am cvallance on github. | |
* I am cvallance (https://keybase.io/cvallance) on keybase. | |
* I have a public key ASA734agV4Jz1sHQU3IoQHhgqAmJWGbhEqXZ0XNLyHNqnAo | |
To claim this, I am signing this object: |
C:\Windows\System32\%LOCALAPPDATA%\CrashDumps |
javascript:(function(){var r=document.getElementsByClassName('profiler-results');if(r.length){r[0].parentNode.removeChild(r[0]);}})() |
//You could also use a base controller and put this in there. | |
public class AdminUserViewBagAttribute : ActionFilterAttribute | |
{ | |
public override void OnActionExecuting(ActionExecutingContext filterContext) | |
{ | |
filterContext.Controller.ViewBag.IsCurrentUserAdmin = magic.FigureThatOut(); | |
} | |
} |