mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-06-09 15:07:49 +00:00
adjust
This commit is contained in:
@@ -3216,7 +3216,7 @@ func (s *repportService) parseExpenseDepreciationV2Query(ctx *fiber.Ctx) (*valid
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if locationScope.Restrict {
|
||||
if locationScope.Restrict && locationID > 0 {
|
||||
allowed := toInt64Slice(locationScope.IDs)
|
||||
if len(allowed) == 0 {
|
||||
return nil, fiber.NewError(fiber.StatusForbidden, "no location access")
|
||||
|
||||
Reference in New Issue
Block a user