diff --git a/diboot-core-starter/pom.xml b/diboot-core-starter/pom.xml index 031b43fd97840835d30a88e9f91cb7b93bd47317..019de01788e24df1d8a63f12841e009f2b0d4f60 100644 --- a/diboot-core-starter/pom.xml +++ b/diboot-core-starter/pom.xml @@ -11,7 +11,7 @@ diboot-core-spring-boot-starter - 2.7.0 + 2.7.1 jar diboot core starter project @@ -57,6 +57,11 @@ test diff --git a/diboot-iam-starter/pom.xml b/diboot-iam-starter/pom.xml index 432fcdbf6767d32c2c456d085bb283f23b50182b..a235bf72a85243b2f047ac8d7157806413fb6403 100644 --- a/diboot-iam-starter/pom.xml +++ b/diboot-iam-starter/pom.xml @@ -20,7 +20,7 @@ com.diboot diboot-core-spring-boot-starter - ${diboot.version} + 2.7.1 diff --git a/diboot-iam-starter/src/main/java/com/diboot/iam/annotation/process/BindPermissionAspect.java b/diboot-iam-starter/src/main/java/com/diboot/iam/annotation/process/BindPermissionAspect.java index 346381b8fbbcfa0a85b6e907e99bcbb67e5af2ad..8212e5a49066002659edbae2d60ecd7a790a03ba 100644 --- a/diboot-iam-starter/src/main/java/com/diboot/iam/annotation/process/BindPermissionAspect.java +++ b/diboot-iam-starter/src/main/java/com/diboot/iam/annotation/process/BindPermissionAspect.java @@ -21,6 +21,7 @@ import com.diboot.core.vo.Status; import com.diboot.iam.annotation.BindPermission; import com.diboot.iam.cache.IamCacheManager; import com.diboot.iam.config.Cons; +import com.diboot.iam.entity.BaseLoginUser; import com.diboot.iam.exception.PermissionException; import com.diboot.iam.starter.IamProperties; import com.diboot.iam.util.IamSecurityUtils; @@ -86,6 +87,9 @@ public class BindPermissionAspect { throw new PermissionException(Status.FAIL_INVALID_TOKEN, e); } catch (Exception e){ + BaseLoginUser currentUser = IamSecurityUtils.getCurrentUser(); + String loginUser = currentUser != null? currentUser.getDisplayName() : null; + log.warn("用户 {} 无 {} 的访问权限", loginUser, permissionCode); throw new PermissionException(Status.FAIL_NO_PERMISSION, e); } } diff --git a/diboot-message-starter/pom.xml b/diboot-message-starter/pom.xml index ea75436d09bb4653df82400422b1e9328be5d2a3..7c9470fa02879bdd05d987fc380b1022684dd5df 100644 --- a/diboot-message-starter/pom.xml +++ b/diboot-message-starter/pom.xml @@ -19,7 +19,7 @@ com.diboot diboot-core-spring-boot-starter - ${diboot.version} + 2.7.1 diff --git a/diboot-scheduler-starter/pom.xml b/diboot-scheduler-starter/pom.xml index 1e29c893988d1fbafbb7e82279750c0804782d1c..ec97e415598f61c7dad023bb72b29838480da277 100644 --- a/diboot-scheduler-starter/pom.xml +++ b/diboot-scheduler-starter/pom.xml @@ -18,7 +18,7 @@ com.diboot diboot-core-spring-boot-starter - ${diboot.version} + 2.7.1