What is need to check customer is admin or not in Picture Controller?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
I've created new role as ''Data Entry" and given below permissions.
1)Access admin area
2)Admin area. Manage Catalog
3)Public store. Display Prices
4)Public store. Enable shopping cart
5)Public store. Enable wishlist

While Uploading Picture sigh-in  as "Data Entry" Role,I got an error "HTTP Error" .
After looking into InsertPicture method of  Picture Controller ,I found
  
    var customer = ((FormsAuthenticationService)_authenticationService).GetAuthenticatedCustomerFromTicket(ticket);
            if (!customer.IsAdmin())
                throw new Exception("User is not admin");



What is need to check customer is admin or not in Picture Controller?
If I want to give rights for Upload Product Picture to custom Role("Data Entry"),What should i do?

Thank You.
12 years ago
Have a look at the latest version. It uses a new 'Admin area. Upload Pictures' permission
12 years ago
a.m. wrote:
Have a look at the latest version. It uses a new 'Admin area. Upload Pictures' permission


Thanks a lot.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.