-
Notifications
You must be signed in to change notification settings - Fork 509
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
base: develop
Are you sure you want to change the base?
Conversation
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
@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 <16772986+KrzysztofPajak@users.noreply.github.com>
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 <16772986+KrzysztofPajak@users.noreply.github.com>
I've added the missing |
@copilot issue |
…oller Co-authored-by: KrzysztofPajak <16772986+KrzysztofPajak@users.noreply.github.com>
I've fixed the parameter mismatch in the |
|
Latest Fix:
Corrected the
GetAllBlogPosts
method 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
pageIndex
andpageSize
, 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.