enable product reviews for specific user group only
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
enable product reviews for specific user group only
Is there a way to enable product reviews for slected user group(s) only?
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
Re: enable product reviews for specific user group only
I found the following line in the code and am trying to figure out how to alter it to set visibility for only admin users. Can somebody point me in the right direction?
ReviewLink.Visible = (Store.GetCachedSettings().ProductReviewEnabled != CommerceBuilder.Users.UserAuthFilter.None && _Product.AllowReviews);
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
- mfreeze
- Commodore (COMO)
- Posts: 421
- Joined: Mon Jan 24, 2005 2:07 pm
- Location: Washington, NJ
- Contact:
Re: enable product reviews for specific user group only
We figured it out. Just replace the above code with that below.
Code: Select all
ReviewLink.Visible = (CommerceBuilder.Common.Token.Instance.User.IsInGroup(1));
Mary E Freeze
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com
Freeze Frame Graphics
Web Hosting and Design, ASP and CFMX Development
http://www.ffgraphics.com