This commit is contained in:
@@ -209,8 +209,9 @@ namespace AyaNova.Biz
|
|||||||
//skip validation if seeding
|
//skip validation if seeding
|
||||||
if (ServerBootConfig.SEEDING) return;
|
if (ServerBootConfig.SEEDING) return;
|
||||||
|
|
||||||
//Only can send a memo from your own account or alternatively as the SuperUser account due to v7Import or other import tasks
|
//Only can send a memo from your own account
|
||||||
if (proposedObj.FromId != UserId && proposedObj.FromId != 1)
|
//with bypass for import if superuser
|
||||||
|
if (proposedObj.FromId != UserId && UserId != 1)
|
||||||
{
|
{
|
||||||
AddError(ApiErrorCode.NOT_AUTHORIZED, "FromId", "No impersonation");
|
AddError(ApiErrorCode.NOT_AUTHORIZED, "FromId", "No impersonation");
|
||||||
return;//no need to bother with any other validation, this is not allowed
|
return;//no need to bother with any other validation, this is not allowed
|
||||||
|
|||||||
Reference in New Issue
Block a user