This commit is contained in:
2022-09-08 09:01:43 +08:00
parent f5ab6ad44f
commit cbf70abf68
3 changed files with 51 additions and 5 deletions
@@ -620,10 +620,13 @@ namespace FineUIPro.Web.Person
string projectPersonInfo = SitePerson_PersonService.ValidPersonInfo(newProjectPerson);
if (string.IsNullOrEmpty(personInfo) && string.IsNullOrEmpty(projectPersonInfo))
{
if (string.IsNullOrEmpty(newPerson.PhotoUrl) || newPerson.PhotoUrl == "~/res/images/blank.png")
if (this.CurrUser.PersonId != Const.sysglyId)
{
Alert.ShowInParent("照片不能为空!", MessageBoxIcon.Warning);
return;
if (string.IsNullOrEmpty(newPerson.PhotoUrl) || newPerson.PhotoUrl == "~/res/images/blank.png")
{
Alert.ShowInParent("照片不能为空!", MessageBoxIcon.Warning);
return;
}
}
if (!string.IsNullOrEmpty(newPerson.PersonId))