View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Visibility of Leaves Calender to All, but Leaves Capacity to self only - ProjeQtOr
 
 

Visibility of Leaves Calender to All, but Leaves Capacity to self only

More
05 Jul 2021 13:32 #1 by yalovali
Hi,
We would like to show everyone the leaves calendar. But I dont want employees to see each other's earned leaves, it is more personel and "earned" value from the company.
I achieved it by changing a few lines in php. Some additional access restrictions for the HR modules will be great.

My solution is to edit dashboardEmployeeManager.php as:
//line 34
  require_once('../tool/projeqtor-hr.php');

 //line 65
  //$employeeList = getUserVisibleResourcesList(true, "List",'',     false, true, true,  true,true);
  $employeeList = getUserVisibleResourcesList(true, "List",'', true,  true, false, true,true);

//LINE 823
                                           foreach($employeeListRequest as $id => $name) {
                                                //errorLog("id:".$id." name:".$name." user-name:".$user->name." user-id:".$user->id);
                                                if ( isLeavesManager(getSessionUser()->id) )
                                                {                                                    
                                                  //  errorLog("user is manager of leaves");
                                                }
                                                else if ($id != $user->id )
                                                {
                                                  //  errorLog("user is NOT manager of leaves");
                                                    continue;
                                                }
   

//AND also give list of resources access to all employees to get a full list of users in the organization.

Best regards

Yasin

Please Log in or Create an account to join the conversation.

More
09 Jul 2021 10:17 #2 by babynus
I don't understand your issue.
On calendar, member that is not manager only sees himself
 

Manager of absence only sees resources managed
 
and in DashBoard manager sees only resources he manages
 

In my opinion all things work fine.

 

Babynus
Administrator of ProjeQtOr web site
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.048 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.