优化接口权限

This commit is contained in:
刘祥超
2022-09-17 16:07:37 +08:00
parent 55eecce416
commit 1d1ff11eb7
54 changed files with 275 additions and 246 deletions

View File

@@ -18,7 +18,7 @@ type HTTPCacheTaskKeyService struct {
// ValidateHTTPCacheTaskKeys 校验缓存Key
func (this *HTTPCacheTaskKeyService) ValidateHTTPCacheTaskKeys(ctx context.Context, req *pb.ValidateHTTPCacheTaskKeysRequest) (*pb.ValidateHTTPCacheTaskKeysResponse, error) {
_, userId, err := this.ValidateAdminAndUser(ctx)
_, userId, err := this.ValidateAdminAndUser(ctx, true)
if err != nil {
return nil, err
}