halo-dev / halo

强大易用的开源建站工具。
https://www.halo.run
GNU General Public License v3.0
33.45k stars 9.62k forks source link

[release-2.19] Prevent null role while getting permissions #6613

Closed halo-dev-bot closed 4 weeks ago

halo-dev-bot commented 4 weeks ago

This is an automated cherry-pick of #6612

/assign JohnNiang

修复取消用户角色后无法正常渲染用户列表的问题
f2c-ci-robot[bot] commented 4 weeks ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ruibaby

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-dev/halo/blob/release-2.19/OWNERS)~~ [ruibaby] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
codecov[bot] commented 4 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Please upload report for BASE (release-2.19@dfa10c0). Learn more about missing BASE report.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## release-2.19 #6613 +/- ## =============================================== Coverage ? 58.05% Complexity ? 3916 =============================================== Files ? 670 Lines ? 22970 Branches ? 1575 =============================================== Hits ? 13335 Misses ? 9019 Partials ? 616 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.