You have no items in your shopping cart.

Thursday, April 25, 2024 10:30:51 PM

To hide the widget in the admin area for specific user roles?

Posted: 6 years ago

#6623 Quote

NetPotential

Posted: 6 years ago

#6623 Quote
Hi,

We've purchased your Tracking Code Manager plugin and was wondering if there was a way to hide the widget in the admin area for specific user roles. This is important to us as we have multiple roles that can access admin and some of them are limited to only specific functionality. We don't want them to access the Tracking Code Manager plugin widget. Thanks!

Posted: 6 years ago

#6624 Quote

Support

Posted: 6 years ago

#6624 Quote
Plugin uses NopCommerce standard permission role Manage Settings.

The code
            if (!_permissionService.Authorize(StandardPermissionProvider.ManageSettings))


If you need I can use this role for hiding winget in admin mode or create new permission role Manage Tracking Code Manager?
What is the better for you?

Posted: 6 years ago

#6625 Quote

NetPotential

Posted: 6 years ago

#6625 Quote
Hi!

Thanks for the swift response. When you say create a new permission role, do you mean a separate item under the Access control list which we could then tick/untick or is it new permission that is strictly tied to a specific role name? Thanks!

Posted: 6 years ago

#6631 Quote

NetPotential

Posted: 6 years ago

#6631 Quote
Hi, is there any update on this?

Posted: 6 years ago

#6632 Quote

Support

Posted: 6 years ago

#6632 Quote
You can use JQuery and remove two last elements from the list.

or I'll add now new css class for these menu elements
foxnetsoft-help-forum
foxnetsoft-help-youtube

You can add new css style in admin mode and hide these elements too.
I put new release on our hosting.

Posted: 6 years ago

#6634 Quote

NetPotential

Posted: 6 years ago

#6634 Quote
Hi,

We don't really want to use jquery hacks to hide the anything in the admin area as these are prone to problems. I could see the css working but this does not cater our need to show the widget on specific user roles. I think your previous suggestion to resolve the problem is a much better choice.

Posted: 6 years ago

#6635 Quote

Support

Posted: 6 years ago

#6635 Quote
No I'm sorry. it was my mistake.
I mixed up you with another customer, he wanted to hide two elements from admin menu.

About your problem.
I'll add this feature this evening.

The new item under the Access control list

Posted: 6 years ago

#6636 Quote

NetPotential

Posted: 6 years ago

#6636 Quote
Hi,

That is perfect! I think that is exactly what we need. Thanks!

Posted: 6 years ago

#6640 Quote

Support

Posted: 6 years ago

#6640 Quote
I added this feature.
Download new release from our site. Replace plugin folder (all files) and restart your site.
You will see new item and can select customer roles.

Posted: 6 years ago

#6641 Quote

NetPotential

Posted: 6 years ago

#6641 Quote
Hi,

I saw that you added it as one of the permissions in the access control list and that is great.

It does show the widget when you check that permission under a specific role and hides it otherwise. However, while it does show the widget under the roles that I have granted the permission unto, it does not let me access that widget further and any items under that widget would show up as "You do not have permission to perform the selected operation. Access denied.".

Granting access to the widget for specific roles means letting them modify things inside the widget as well so I believe this is a bug. Let me know if you need any clarification. Thanks!

Posted: 6 years ago

#6643 Quote

Support

Posted: 6 years ago

#6643 Quote
Yes, yes, yes.
I added this ACL item, but I forgot to change old 'managesettings' permission.
I have fixed this bug. I didn't change the release number.
Please download new release and try.

P.S.
Check the date of release.
Thank you.

Posted: 6 years ago

#6655 Quote

NetPotential

Posted: 6 years ago

#6655 Quote
Hi,

Thanks for the updates. I think what you've done is perfect for what we are trying to achieve. Thanks for all the help!

Posted: 6 years ago

#6666 Quote

NetPotential

Posted: 6 years ago

#6666 Quote
Done :)

Posted: 6 years ago

#6667 Quote

Support

Posted: 6 years ago

#6667 Quote
Thank you.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved