0
Answered
Displaying Office Mage rights with a method
I'm trying to create a virtual column/macro for a Customer Contact Person whether they have Customer Portal access, can they access multiple offices in the portal, and which kind of Manage Rights they have (Default Office, Department...)
I can get the access status with canLogInToCustomerPortal() and the offices with isAssociatedWithManyCustomers()
However, the method canManageOnlyRelated() does not work. Is there a work-around to see which kind of rights the Contact Person has?
Customer support service by UserEcho
What we can suggest in here is to use "getAccount()" method on Client Contact Person, which should return the System Account of this Contact person. In System Account there are some methods that can be used to check particular Contact Person's rights. Please check if one (ore more) of these methods will be sufficient for You.
You could try one of the two:
I don't get it. In Client Contact Person scope:
$utils.unwrap($this).canLogInToCustomerPortal() -> true
$utils.unwrap($this).getAccount() -> invalid method
canLogInToCustomerPortal() returns true for every client contact person or client. This method's result depends on the user type (returns false for vendor, vendor contact person or home portal user).