增加Shop API
This commit is contained in:
1 parent
3769193696
commit
5d017740c6
83 files changed
+4451
-696
No files matched your search
@@ -11,9 +11,6 @@ internal static class UserAccessPolicy
|
||||
public static bool Owns(UserEntity actor, UserEntity target) => actor.IsMainUser
|
||||
&& string.Equals(target.ParentUserName, actor.UserName, StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
public static bool CanRead(UserEntity actor, UserEntity target) =>
|
||||
CanUseSelfService(actor, target);
|
||||
|
||||
/// <summary>子账号可查询本人、修改本人密码、提交充值备注和为本人店铺续费。</summary>
|
||||
public static bool CanUseSelfService(UserEntity actor, UserEntity target) =>
|
||||
actor.Id == target.Id || CanManage(actor, target);
|
||||
|
||||
Reference in new issue
Block a user