Method | Description | |
---|---|---|
GetPermissionsByResource ( string resourceUri ) : BeiDream.Core.Security.Authorization.ResourcePermissions |
检测该用户是否属于当前租户 获取资源的权限列表
|
|
IsInApplication ( string userId ) : bool |
检测该用户是否属于当前应用程序
|
Method | Description | |
---|---|---|
GetPermissions ( string resourceUri ) : List |
从数据库权限表里,根据资源id获取此资源的所有的角色集合(权限列表)
|
public GetPermissionsByResource ( string resourceUri ) : BeiDream.Core.Security.Authorization.ResourcePermissions | ||
resourceUri | string | 资源标识 |
return | BeiDream.Core.Security.Authorization.ResourcePermissions |
public IsInApplication ( string userId ) : bool | ||
userId | string | 用户编号 |
return | bool |