-
Notifications
You must be signed in to change notification settings - Fork 522
Add Blog management functionality to Store area and remove Admin store restrictions #623
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Blog management functionality to Store area and remove Admin store restrictions #623
Conversation
Co-authored-by: KrzysztofPajak <[email protected]>
Co-authored-by: KrzysztofPajak <[email protected]>
|
@copilot Verify the controller in the admin panel and remove the restriction related to the store, because it has been moved to the store project. |
Co-authored-by: KrzysztofPajak <[email protected]>
I've removed all store restrictions from the Admin BlogController as requested. The changes include removing IsStoreManager checks, StaffStoreId assignments, and AccessToEntityByStore validations across all blog post and category management methods. The Admin area now has full access to all blog content while store-specific management remains in the Store area. Changes committed in 9664d85. |
|
@copilot Add missing using in _ViewImports.cshtml |
Co-authored-by: KrzysztofPajak <[email protected]>
I've added the missing |
|
@copilot issue |
…oller Co-authored-by: KrzysztofPajak <[email protected]>
I've fixed the parameter mismatch in the |
Updated the `Create` method to await the asynchronous call to `_blogService.GetBlogPostById(id)`. Removed redundant initialization of the `AllowComments` property in `BlogPostModel`.
|



Latest Fix:
Corrected the
GetAllBlogPostsmethod call in the Store BlogController's List action. The issue was that the method was being called with incorrect positional parameters, causing a type mismatch where a string was being passed for aDateTime?parameter.Changed from:
To:
This uses named parameters to explicitly specify
pageIndexandpageSize, avoiding the type conversion error and ensuring the correct method overload is used.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.