Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Fix of 826: Allow staff to import manufacturers from excel #998

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Grand.Web/Areas/Admin/Controllers/ManufacturerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ public async Task<IActionResult> ExportXlsx()
[HttpPost]
public async Task<IActionResult> ImportFromXlsx(IFormFile importexcelfile, [FromServices] IWorkContext workContext)
{
//a vendor and staff cannot import manufacturers
if (workContext.CurrentVendor != null || _workContext.CurrentCustomer.IsStaff())
//a vendor cannot import manufacturers
if (workContext.CurrentVendor != null || _workContext.CurrentCustomer.IsVendor())
return AccessDeniedView();

try
Expand Down