Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict a user to submit Previous month time sheet

SOLVED
Go to solution
Highlighted
Dipen
Super Collector

Restrict a user to submit Previous month time sheet

Hi,

i need to restrcit a user from submitting previous month time sheet?

any idea how to do this?
9 REPLIES
Mahen M
Honored Contributor

Re: Restrict a user to submit Previous month time sheet

Hi,
I think there is a shell script called 'kGenTimeMgmtPeriods.sh' or 'kGenPeriods.sh', I am not exactly clear, can you see the System Administration Guide and Reference.

We can see past 10 weeks timesheets, and 5 future week's timesheets for creation. If it is previous month time sheet means, We have to see for custom logic..... If the week ends on 31st March, People will start to submit timesheet on 1st April.... As per your requirement, People should not have access to create timesheet for last week of March?

Regards,
Mahendran M
Sascha Mohr
Esteemed Contributor
Solution

Re: Restrict a user to submit Previous month time sheet

This is controlled by a server conf parameter:
com.kintana.core.server.TMG_PAST_PERIODS_TO_ALLOW=15
I don't think there is a way to control it on a per-user basis.
Mahen M
Honored Contributor

Re: Restrict a user to submit Previous month time sheet

Thanks for the info Sascha, Magical Answer!! The server Administration guide explains this
----------------------------------

TMG_FUTURE_PERIODS_TO_ALLOW
Specifies the number future periods for which users can enter time. Default: 10

TMG_PAST_PERIODS_TO_ALLOW
Specifies the number of previous periods for which users can enter time. Default: 10

--------------------------------------

I have a question, It is not mandatory parameter in Server.conf, If we do not enter this parameter it will take the default. Am I right?

Regards,
Mahendran M
Dipen
Super Collector

Re: Restrict a user to submit Previous month time sheet

Thanks for the replies Sascha and Mahen.

Yes its true that we can restrict users from submitting previous period time sheet through server.conf file.

But just wanted to know if we can know the name of the query which shows the list of the time periods shown in the drop down list on time sheet create page.
Sascha Mohr
Esteemed Contributor

Re: Restrict a user to submit Previous month time sheet

That would be "TMG - Time Periods" but it is "seeded data" and therefore not changable through the workbench.
Dipen.Patel
Acclaimed Contributor

Re: Restrict a user to submit Previous month time sheet

Its true that we cannot change the query in TMG - TIme Periods validation through work bench.

However i tried to change the sql query through back end, but still the time period shown on create time page are same and it seems that something else is governing the list shown in drop down box in create time sheet page.

any idea what else needs to be changed to chagne the list shown in drop down box?
Raji Venkatesan
Acclaimed Contributor

Re: Restrict a user to submit Previous month time sheet

Hi, I am having the same problem. Where you able to solve the TMG - Time Periods validation issue.

 

Thanks,

Jamie Pick
Regular Collector

Re: Restrict a user to submit Previous month time sheet

As stated earlier in this thread, it's controlled by a server.conf setting...

 


TMG_PAST_PERIODS_TO_ALLOW
Specifies the number of previous periods for which users can enter time. Default: 10

 


 

Celil
Esteemed Contributor

Re: Restrict a user to submit Previous month time sheet

Hi Mahen,

Yes, you are right. This rule applies to all parameters not show in server.conf.

Celil
Celil

IT Governance Professional
& PPM Solution Architect
//Add this to "OnDomLoad" event