Update Partner ID
This commit is contained in:
@@ -166,12 +166,7 @@ func (h *Handler) GetAll(c *gin.Context) {
|
||||
|
||||
}
|
||||
|
||||
if !ctx.IsSuperAdmin() {
|
||||
response.ErrorWrapper(c, errors.ErrorUnauthorized)
|
||||
return
|
||||
}
|
||||
|
||||
users, total, err := h.service.GetAll(ctx, req.ToEntity())
|
||||
users, total, err := h.service.GetAll(ctx, req.ToEntity(ctx))
|
||||
if err != nil {
|
||||
response.ErrorWrapper(c, err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user