public virtual bool Authorize(PermissionRecord permission, User user) { if (permission == null) return false; if (user == null) return false; return Authorize(permission.SystemName, user); }
public bool Authorize(PermissionRecord permission) { return Authorize(permission, MembershipContext.Current.User); }