cofoundry-cms / cofoundry

Cofoundry is an extensible and flexible .NET Core CMS & application framework focusing on code first development
https://www.cofoundry.org
MIT License
836 stars 146 forks source link

IDomainRepository.WithExecutionContext: Support passing in IUserContext #483

Closed HeyJoel closed 2 years ago

HeyJoel commented 2 years ago

We can currently elevate permissions by passing in a new execution context via IDomainRepository.WithExecutionContext, but if you're elevating permissions you probably just want to pass the IUserContext and not have to deal with the other execution context properties.

In doing this we'd probably want to rename the existing feature to "WithContext" and support both contexts with overloads. This would be a breaking change, but a simple rename.

HeyJoel commented 2 years ago

Fixed, will be release in v0.10