Skip to content

Commit

Permalink
增加 查看他人资金历史权限功能
Browse files Browse the repository at this point in the history
  • Loading branch information
liufei-ereach committed Mar 1, 2024
1 parent fc6226e commit dad188a
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 11 deletions.
5 changes: 5 additions & 0 deletions extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
*/

use Flarum\Extend;
use Flarum\Api\Serializer\BasicUserSerializer;

use Mattoid\MoneyHistory\Api\Controller\ListUserMoneyHistoryController;
use Mattoid\MoneyHistory\Attributes\UserAttributes;
use Mattoid\MoneyHistory\Event\MoneyAllHistoryEvent;
use Mattoid\MoneyHistory\Listeners\MoneyAllHistoryListeners;
use Mattoid\MoneyHistory\Listeners\MoneyHistoryListeners;
Expand All @@ -27,6 +29,9 @@
->css(__DIR__.'/less/admin.less'),
new Extend\Locales(__DIR__.'/locale'),

(new Extend\ApiSerializer(BasicUserSerializer::class))
->attributes(UserAttributes::class),

(new Extend\Routes('api'))
->get('/users/{id}/money/history', 'user.money.history', ListUserMoneyHistoryController::class),

Expand Down
2 changes: 1 addition & 1 deletion js/dist/admin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/admin.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit dad188a

Please sign in to comment.