This commit is contained in:
2020-12-09 00:26:20 +00:00
parent 85a15e1450
commit fa24007ba7
2 changed files with 3 additions and 3 deletions

View File

@@ -504,7 +504,7 @@ namespace AyaNova.Biz
//no need to rollback, the transaction will rollback automatically if it's disposed without committing
throw;
}
//Note: Transaction does not need to be disposed it will automatically when it goes out of scope due to Using statement
//Note: Transaction does not need to be disposed it will automatically when it goes out of scope due to Using statement
return true;
}
@@ -526,7 +526,7 @@ namespace AyaNova.Biz
//UserType change has Inside / Outside role implications
//a user attempting to change a UserType between inside or outside status must have the correct rights
//to *BOTH* Customer and User since it's affecting both types
if (currentObj.IsOutsideUser != proposedObj.IsOutsideUser)
if (!isNew && (currentObj.IsOutsideUser != proposedObj.IsOutsideUser))
{
//only can change if have both rights
if (