You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
311 B
15 lines
311 B
2 years ago
|
package check
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
2 years ago
|
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/tokenverify"
|
||
2 years ago
|
)
|
||
|
|
||
2 years ago
|
func (u *UserCheck) Access(ctx context.Context, ownerUserID string) (err error) {
|
||
2 years ago
|
_, err = u.GetUserInfo(ctx, ownerUserID)
|
||
2 years ago
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
2 years ago
|
return tokenverify.CheckAccessV3(ctx, ownerUserID)
|
||
2 years ago
|
}
|