Skip to content

feat(permission): report missing permissions in forbidden message - #43

Closed
aevioni wants to merge 5 commits into
weiran-tech:mainfrom
aevioni:feat/permission-missing-hint
Closed

aevioni wants to merge 5 commits into
weiran-tech:mainfrom
aevioni:feat/permission-missing-hint

Conversation

@aevioni

@aevioni aevioni commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Fill the PERMISSION.FORBIDDEN exception message with the resource and action descriptions of the permissions that failed, resolved from the local permission catalog
  • Format each entry as 缺少权限 - resource:action and join multiple entries with 、
  • Bump version to 1.1.2-SNAPSHOT

Test plan

  • ./gradlew :wuli3-permission-spring-boot-starter:check
  • PermissionCheckerTest#reportsMissingPermissionsAsResourceAndActionDescriptions covers require, requireAll and requireAny

鉴权失败时按本地权限目录把缺失的权限键翻译为“资源描述 : 动作描述”,
多权限用顿号连接;requireAny 失败提示缺少任一权限。
…eparators

- Prepend "缺少权限 - " to missing permission descriptions
- Remove spaces around resource/action separator in messages
@aevioni aevioni closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant