tarkana
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Emails breaking orders@tim-forster were you having the same problem I am?
And what did you delete? the whole woo-commerce plugin? anything beside that?
Thanks
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Emails breaking ordersPHP limits have been set high for quite a while. I would need to wait for a good off-hour to try WP DEBUG as I generally can’t have it running in debug mode.
What would be the proper way to try those functions/filters? Set them to false? If anything, I would have guessed the emails not being deferred would be the cause of the problem, but I guess there’s no rule that says it has to be intuitive.
Thank you.
@menathor Not much at the moment. I was working on it, but other work priorities took precedence. It is definitely something I want to dig into as soon as I have time. It looks like they made some changes regarding the CRM agent role in the last update, but the lack of changes in the file he told to to check out elucidated that the crm/views files are also important. The code controlling the capabilities, including visibility, wasn’t quite as straightforward as I’d hoped, so it won’t be as easy as other customizations I’ve done in the past, not being an expert in PHP.
Thank you. I will check it out and see if I can come up with a way to change the contact ownership settings the way I described and I’ll post it here if I do so you guys can pass it along.
@thebengalboy Ok, yeah that’s probably an important qualifier. Since it is only an issue with super-admins, it wouldn’t come up in a single-site installation. Well, if you guys decide to formally support multi-site (which might be worthwhile given the target audience is businesses) so far that is the only issue I have found, so it might be an easy fix.
To the other question, would you happen to know where CRM Agent capabilities and restrictions are set, where new contact/company owners are set, and where it checks the owner against the user, so I can try to figure out a customization possibility?
@thebengalboy Yes, the admins all have the CRM Manager role.
Like I said, I tested it. A regular admin account could see all the contacts/companies. I granted that account super-admin status without changing anything else, and suddenly that account could now only see their own contacts/companies. I removed the super-admin privilege, and then it was able to view all companies/contacts again, so I don’t see how it could not be related to super admin status.
These are the roles on the superadmin account:
Administrator – administrator
Accounting Manager – erp_ac_manager
CRM Manager – erp_crm_manager
HR Manager – erp_hr_managerThe regular [non-super] admin had the exact same roles.
To be sure it wasn’t caused by any conflict, I deactivated (both on the network and individual site) any plugin at all related to user roles or accounts (user switching, username changer, members, role editor – no membership-type plugins installed). I got the same results: superadmin accounts cannot view any companies/contacts that they don’t own. A regular admin account was able to view all, was no longer able to when made a super-admin, and then able to again when super-admin status was removed.
Hopefully this shouldn’t be needed, but if absolutely necessary, I can find some time tomorrow night to record myself freshly installing a new wordpress installation, setting up multisite network, making a few different accounts, and installing the ERP plugin to show you a video of what I’ve described.
Thanks for the quick response.
I used the clean-up tool you posted and it pretty much did the trick (using some capability-management plugins I could see a few erp capabilities left remnants in a few places; I don’t think that affected anything, just thought I’d let you know).
I reinstalled the plugin, and while the Agent role is not on the admin account, it seems that any super admin users are unable to see other users’ companies/contacts in the same way a CRM agent is. If I switch to a regular [non-super] admin account it works fine. So if you local site is a single site installation then this probably isn’t an issue. It seems to be related to multisite network.
To be completely certain, I granted a non-super admin account which was able to see everyone’s contacts/companies super-admin status, then they were no longer able to see other peoples’. I then revoked the super-admin privilege and they were able to see all of them again. So something about the network super-admin status is getting tangled up, possibly with the CRM agent restriction.
——–
To the side-question: would you be bale to point to to the files and general locations in the files where CRM Agent capabilities and restrictions are set, where new contact/company owners are set, and where it checks the owner against the user? I’d like to see if I can hack myself a work-around similar to the one for multiple life stages. The info there may even be able to resolve this issue too. If I can produce a good solution I’ll post it here so everyone could use it, and maybe get it integrated into a subsequent release.