mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 19:04:51 +08:00
Removing dependency to Orchard.User from Orchard.Email
--HG-- branch : dev
This commit is contained in:
@@ -92,10 +92,6 @@
|
||||
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
||||
<Name>Orchard.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Orchard.Users\Orchard.Users.csproj">
|
||||
<Project>{79AED36E-ABD0-4747-93D3-8722B042454B}</Project>
|
||||
<Name>Orchard.Users</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Placement.info" />
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using Orchard.Messaging.Events;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Users.Models;
|
||||
using Orchard.Messaging.Models;
|
||||
using Orchard.Security;
|
||||
|
||||
namespace Orchard.Email.Services {
|
||||
public class EmailMessageEventHandler : IMessageEventHandler {
|
||||
@@ -16,7 +16,7 @@ namespace Orchard.Email.Services {
|
||||
if ( contentItem == null )
|
||||
return;
|
||||
|
||||
var recipient = contentItem.As<UserPart>();
|
||||
var recipient = contentItem.As<IUser>();
|
||||
if ( recipient == null )
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user