Hi,
I have been using PP088 for a while and its a great piece of software. I am just exploring the clients / contacts sections. I have set up a test client and test client user.
when logged in as the test client user if I click on an assigned project then choose 1 of the involved users. Then click on the link of the user's company (the main company), it lists all the active projects for the company.
Is there a way to stop this? obviously we don't want clients seeing what other projects we are involved in.
Thanks
Hi andy2605,
I too would like to hide projects my client is not involve in.
Were you able to find a solution or work around this?
Regards,
This is an urgent requirement, and in fact, renders project pier unusable in my business unless fixed.
Can anyone help with this? Urgently need to get it fixed!
I will have a look this weekend. Not too big a deal :-)
Thanks phpfreak.
At the moment, I just opted to write project codes in the name field and the actual project name in the description so my clients see all the projects but just project codes. However, by doing so, its difficult for me now to find a particular project by their codes. It's hard but it works at the moment.
Looking forward to this fix.
PHPfreak,
When you do this, would you be able to put it a fix that stops clients from being able to see project staff as well?
The fix for hiding users as well:
Edit application/models/User.class.php, note the // in front of the 3 lines before return false;
function canSeeUser(User $user) {if ($this->isMemberOfOwnerCompany()) {
return true; // see all
} // if
if ($user->getCompanyId() == $this->getCompanyId()) {
return true; // see members of your own company
} // if
//if ($user->isMemberOfOwnerCompany()) {
// return true; // see members of owner company
//} // if
return false;
} // canSeeUser
Thanks phpfreak! Needed this as well.
Sorry for the delay. This is the fix:
Edit application/models/users/User.class.php,
search for n canSeeC,
replace this
function canSeeCompany(Company $company) {if ($this->isMemberOfOwnerCompany()) {
return true;
} // if
with this
function canSeeCompany(Company $company) {if (!$this->isMemberOfOwnerCompany()) {
return false;
} // if
I tried it and it seems to solve it.
Thanks PHPfreak... a lifesaver!
Thanks phpfreak. It does hide the projects on the projects side bar but as a test client, I am still able to see all the projects under my company's company card under Active Projects. I was able to access this as I (still as a test client) can see the "online users" and through the "involved companies" link under "my projects".
Any further fix is highly appreciated.