mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 23:13:40 +08:00
check issue #35
This commit is contained in:
parent
24bad240df
commit
a73c95bebc
@ -114,6 +114,8 @@ namespace OpenAuth.App
|
||||
|
||||
public void AddOrUpdate(UserView view)
|
||||
{
|
||||
if (string.IsNullOrEmpty(view.OrganizationIds))
|
||||
throw new Exception("请为用户分配机构");
|
||||
User user = view;
|
||||
if (user.Id == Guid.Empty)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user