mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-07 18:04:45 +08:00
check issue #35
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user