Skip to content

Commit

Permalink
Merge pull request #84 from openfoodfoundation/feature/api-group-update
Browse files Browse the repository at this point in the history
Feature: Added "My Team Read" and Redemption quick-select button.
  • Loading branch information
ok200paul authored Dec 13, 2024
2 parents 20f06e4 + a540835 commit ee5a363
Show file tree
Hide file tree
Showing 7 changed files with 1,184 additions and 825 deletions.
1 change: 1 addition & 0 deletions app/Enums/PersonalAccessTokenAbility.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ public static function redemptionAppTokenAbilities(): array
return [
self::VOUCHER_REDEMPTIONS_CREATE->value => self::abilityLabels()[self::VOUCHER_REDEMPTIONS_CREATE->value],
self::VOUCHER_REDEMPTIONS_READ->value => self::abilityLabels()[self::VOUCHER_REDEMPTIONS_READ->value],
self::MY_TEAM_READ->value => self::abilityLabels()[self::MY_TEAM_READ->value],
];
}

Expand Down
1 change: 1 addition & 0 deletions app/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public function share(Request $request): array
],
'personalAccessTokenAbilities' => PersonalAccessTokenAbility::groupsAbilityCasesWithDefinitions(),
'platformAppTokenAbilities' => PersonalAccessTokenAbility::platformAppTokenAbilities(),
'redemptionAppTokenAbilities' => PersonalAccessTokenAbility::redemptionAppTokenAbilities(),
'isImpersonating' => session('vine:impersonator'),
'voucherSetTypes' => VoucherSetType::values(),
];
Expand Down
1 change: 0 additions & 1 deletion app/Models/VoucherSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public function createdByUser(): BelongsTo
return $this->belongsTo(User::class, 'created_by_user_id', 'id');
}


/**
* @return BelongsTo
*/
Expand Down
Loading

0 comments on commit ee5a363

Please sign in to comment.