|
|
|
@ -363,8 +363,7 @@ namespace Yavsc
|
|
|
|
[Authorize]
|
|
|
|
[Authorize]
|
|
|
|
public void SendPV(string userName, string message)
|
|
|
|
public void SendPV(string userName, string message)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (string.IsNullOrWhiteSpace(userName))
|
|
|
|
if (string.IsNullOrWhiteSpace(userName)) return;
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (userName[0] != '?')
|
|
|
|
if (userName[0] != '?')
|
|
|
|
if (!Context.User.IsInRole(Constants.AdminGroupName))
|
|
|
|
if (!Context.User.IsInRole(Constants.AdminGroupName))
|
|
|
|
|