EasyAbp / AbpHelper.CLI

Providing code generation and more features to help you develop applications and modules with the ABP framework.
MIT License
285 stars 95 forks source link

PermissionDefinitionProviderStep execution error #187

Open blackWins opened 1 year ago

blackWins commented 1 year ago

https://github.com/EasyAbp/AbpHelper.CLI/blob/95c8f2100c2287c4240be28db992e448198bc175/src/AbpHelper.Core/Steps/Abp/ModificationCreatorSteps/CSharp/PermissionDefinitionProviderStep.cs#L21

When content contain context.AddGroup more than one then will throw exception, we can use First replace Single .sometime It is possible to declare multiple groups.

wakuflair commented 1 year ago

If multiple groups are defined, which group should be used?

blackWins commented 1 year ago

Use the last one because the permission code is appended at the end.The purpose of modification is to avoid abnormal process interruption when there are multiple groups