How to remove "Add to Timesheet" hyperlink for Resource manager in Timesheet portal

Knight Rider
Mega Guru

Hello All,

 

We are trying to restrict "Resource Manager" to not to submit Time card for their resources.
Only Logged in user should have the ability to submit the Time card,

 

Please refer to the below screen shot.

In the below snippet, I have impersonated as Resource manager "Harrison", when he is viewing timecards for his resource "Ahmed".
He was able to view "Add to Timesheet" Hyperlink on the task "test"

KnightRider_0-1729258980760.png

 

 

Thanks in advance!!

1 REPLY 1

Bhavya11
Kilo Patron

Hi @Knight Rider ,

 

From the OOTB , user with "timecard_user " role can able to create it record in Time card table[time_card] . 

 

In widget 'Time Card Portal - Task Selector' they are checking  is the user has data.canCreateTimecards && !card.hideAddToTimesheet .so in this case you need to modify the create  ACL  on Time card table[time_card] according to your requirement so that it will not allow all user 

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks,

BK