Clarity

Expand all | Collapse all

Disable "current timesheet" button from quick menu

  • 1.  Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 02:40 AM

    Hi All,

     

    Could you please help us on our situation? When we have monthly closing procedure (2 days a month when all Timesheets are processed by all necessary jobs till ppa_wip)

    we would like to ensure that users cannot access their timesheets. In first step we remove right "Timesheet - Navigate" from security group, so for users disappear "Timesheet" link from menu "Home" ->. "Personal"

     

    However, they still can access their TS via "Current timesheet" button (clock) icon, in right upper corner:

    Current_timesheet.JPG

    Could you please advise how this icon/accessibility could be removed/disabled for a time when monthly closing process is running?

     

    Many thanks

     

    Matej



  • 2.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 02:47 AM

    Hi Matej,

     

    Try removing the below code from the UI Theme and see if it helps

     

    /* The Current Timesheet image */

    #ppm_timesheet img {

      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAACuElEQVQoz3WT+0uTURjHX83Ksh+66DTULmSgBZpBzb+ggiChDAIRSkT9QchfKgKl1LIkraRMaxUUSKAIJS4nk3nd6y7O5e7v3rm9295t72xzTm1z8/J0NmdtWgc+POc8l+95zuEcDACwaDLYhfF7MnKTMQw7gshEHEbsRySE4vvOFsXkxxafu5SExR3IQcnnr9+qKn718ctNvlBWNIjLr3V+HSwsq645sXXDP5N0dmESFn+oIOVozpVu7lCTybVM0gtrYPX+xeTy85UzzsvbBFi5F+J37mXlpx87dVWsonrpBQCzZxVM7iAiELFBoOZWgHIHgySzWB4jcPAkOw21XdDFHeaECg2zy0A6fQh/NKvIRxtm/SjuDyhMP/PCAnmlrVjcjoTjxWW3q1QWD6Nn/KCzL20DxcTyGWcN4fgV8S32kI6FROxMWVsc2p31ktP5VMf4QGX1wg+T26u0eEGFzqK0zIcRKoyVCrPHtblGBNX0fCqWX8FB9Vja49b3DSItbZAZZn1ClUXbNyJ7ISWd9mnKAxKdXTChtr6RG92wgcuKrFxBzaVsXASGpdY/f9uIa6yMWGcPiAkmIJDpBT0D4/cFkwSHL9bUignHkkTPQBjC4ZIQDDFJOlmbAokPWzrqRToH4Fob4BobTGjtMKqgbL0jsoahKQNXqKbXERCFR6SzJW8KYCXl1Rf7cTU9rrbB8DS1MjxthhGFGc3N6xEbAvkpHyIUe4dr6F0xr6qp7VPTd1xr54l0rkHZDGxgjBBeL/EnDXpkJairzJiXGBpZ2afT7tY1V3BxzdqA1AADUhL6hGpRP+qVJyGBJ9EDT0wY+8am0v/5FyJCyXUt7cXdfOkYF9dCF1/a8W1UKeNOaD29Y8p2rlCT89/PFM2NktKMO7WN7HsPnmQ9e/0hu/1zd9ajxubdW/N+AwgUmpcbd19iAAAAAElFTkSuQmCC);

      width: 16px;

      height: 15px;

    }

     

    Regards

    Suman Pramanik



  • 3.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 03:27 AM

    Hi Suman,

     

    Thanks for your very quick reaction. I'm quite aware of this "solution" but is it possible to disable this button by not removing/adding source code from/to UI Theme?

    Because actually this rights removal is provided by another team which does not have access to source code and also this is quite "not friendly" solution for them which has to be done every month a twice time.

    I mean, some solution without modifying source code. It is enough to somehow disable this button, could be still there... .Many thanks for your hints.

     

    Matej



  • 4.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 03:31 AM

    "but is it possible to disable this button by not removing/adding source code from/to UI Theme?"

     

    Suman has already mentioned - "Try removing the below code from the UI Theme and see if it helps" - He wants to remove the code from the UI Theme

     

    NJ



  • 5.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 03:33 AM

    What Suman has suggested can be done from Administration > Studio > UI Themes

     

    "which does not have access to source code" - Do you mean that they cannot access the above mentioned path ?

     

    NJ



  • 6.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 03:52 AM

    Hi NJ,

     

    OK, So your suggestion is possible to do, I thought some .xbl files have to be modified instead, not an UI theme, so my sorry.

    Example: I've created one UI theme with TS icon and one without. However, the URL link behind this icon still remains there and is accessible...

     

    Current_timesheet2.jpg

     

    For me as admin is this not a proper solution because some users still can access this. Could be also this URL link somehow be removed? Or do you have any other suggestions for prevent users to access this?

     

    Many thanks

    Matej



  • 7.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 03:57 AM

    Hi matej,

     

    Ok one more way to disable link without tampering the code would be to have the timesheet but remove the URL part in the UI theme and see if that helps. Changing the files are dangerous as it might break the upgrades and not supported.

     

    /* The Current Timesheet image */

    #ppm_timesheet img {

      background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAPCAYAAADtc08vAAACuElEQVQoz3WT+0uTURjHX83Ksh+66DTULmSgBZpBzb+ggiChDAIRSkT9QchfKgKl1LIkraRMaxUUSKAIJS4nk3nd6y7O5e7v3rm9295t72xzTm1z8/J0NmdtWgc+POc8l+95zuEcDACwaDLYhfF7MnKTMQw7gshEHEbsRySE4vvOFsXkxxafu5SExR3IQcnnr9+qKn718ctNvlBWNIjLr3V+HSwsq645sXXDP5N0dmESFn+oIOVozpVu7lCTybVM0gtrYPX+xeTy85UzzsvbBFi5F+J37mXlpx87dVWsonrpBQCzZxVM7iAiELFBoOZWgHIHgySzWB4jcPAkOw21XdDFHeaECg2zy0A6fQh/NKvIRxtm/SjuDyhMP/PCAnmlrVjcjoTjxWW3q1QWD6Nn/KCzL20DxcTyGWcN4fgV8S32kI6FROxMWVsc2p31ktP5VMf4QGX1wg+T26u0eEGFzqK0zIcRKoyVCrPHtblGBNX0fCqWX8FB9Vja49b3DSItbZAZZn1ClUXbNyJ7ISWd9mnKAxKdXTChtr6RG92wgcuKrFxBzaVsXASGpdY/f9uIa6yMWGcPiAkmIJDpBT0D4/cFkwSHL9bUignHkkTPQBjC4ZIQDDFJOlmbAokPWzrqRToH4Fob4BobTGjtMKqgbL0jsoahKQNXqKbXERCFR6SzJW8KYCXl1Rf7cTU9rrbB8DS1MjxthhGFGc3N6xEbAvkpHyIUe4dr6F0xr6qp7VPTd1xr54l0rkHZDGxgjBBeL/EnDXpkJairzJiXGBpZ2afT7tY1V3BxzdqA1AADUhL6hGpRP+qVJyGBJ9EDT0wY+8am0v/5FyJCyXUt7cXdfOkYF9dCF1/a8W1UKeNOaD29Y8p2rlCT89/PFM2NktKMO7WN7HsPnmQ9e/0hu/1zd9ajxubdW/N+AwgUmpcbd19iAAAAAElFTkSuQmCC);

      width: 16px;

      height: 15px;

    }

     

    Regards

    Suman Pramanik



  • 8.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 04:10 AM

    "remove the URL part in the UI theme and see if that helps"

     

    That wouldn't work as that is the base code for the image that you see

     

    NJ



  • 9.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 04:15 AM

    Hi Suman, NJ

     

    I've changed UI theme as you suggested (removed above lines) but as I said, the URL link to current timesheet still remains in the system(picture above also).

    So I'd like to remove also this link...because for users it is still accessible. I'm also wondering why is this button presented when after removal of "Timesheet - Navigate" right, users still can access their timesheets.

    For me it's quite conflicting... ..

     

    Thanks

    Matej



  • 10.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 04:30 AM

    Hi Matej,

     

    These icons are not rights driven, if they don't have time sheet navigate the icon will still be there and when you click it still takes to timesheet page and when you try to submit a timesheet it give you Error 401 - Unauthorized. You are not authorized to view the page. If you are sure you have access, try logging in again or contact your system administrator.

     

    However i agree with your point and should be raised a bug, please log a case with support to take it forward.

     

    Regards

    Suman Pramanik



  • 11.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 04:37 AM

    "after removal of "Timesheet - Navigate" right, users still can access their timesheets"

     

    You need to remove the "Resource - Enter Time" access right as well

     

    NJ



  • 12.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 04:52 AM

    Nj,

     

    I tested the same, it still takes to time sheet page which it shouldn't be

     

    Regards

    Suman Pramanik



  • 13.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 05:02 AM

    Hi All,

     

    OK, so from now not any other suggestions you have? I've raised a case also but from other CA supporter response was the same...

     

    If you will have some ideas please let me know. If I, I'll post it. Thanks

     

    Matej



  • 14.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 05:06 AM

    I tested removing both -

     

    Timesheet - Navigate

    Resource - Enter Time

     

    Can you check the user's timesheet to see if there are any time-related rights ?

     

    As you mentioned earlier, it should give you the mentioned error message -

    Error 401 - Unauthorized. You are not authorized to view the page. If you are sure you have access, try logging in again or contact your system administrator.

     

    NJ



  • 15.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 05:12 AM

    Hi NJ,

     

    That error comes only when you click on submit timesheet, but ideally it shoudn;t take you to the timesheet page itself and that is what i feel should be a bug?

     

    Regards

    Suman Pramanik



  • 16.  Re: Disable "current timesheet" button from quick menu
    Best Answer

    Posted Feb 03, 2015 05:28 AM

    Ok, let me take a step back to check that both are on the same page - apologies for the inconvenience, Suman

     

    I make sure that the user doesn't have the below 2 rights -

    Timesheet - Navigate

    Resource - Enter Time

     

    Then, I login as the user and when I click on the Current Timesheet icon, it gives you the mentioned error message -

    Error 401 - Unauthorized. You are not authorized to view the page. If you are sure you have access, try logging in again or contact your system administrator.

     

    You are saying - "That error comes only when you click on submit timesheet, but ideally it shoudn;t take you to the timesheet page itself and that is what i feel should be a bug?"

     

    I think that throwing that error when you don't have the above 2 rights it is as expected

     

    The Current Timesheet icon is taking to the recent most timesheet that you need to fill-in.

     

    Only if you Submit for Approval that it would take you to the timesheet list page - please correct me if wrong

     

     

    So, you have 2 options to get to the timesheet -

    1. The Current Timesheet icon, that takes you to the most timesheet that you need to fill-in.

    2. Home > Timesheets (under Personal menu) that takes you to the timesheet list

     

     

    NJ



  • 17.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 05:40 AM

    Hi guys,

    I currently located an ERQ already on our internal system:

     

     

    CLRT-69359:

    ERQ: r13.x Themes should only show the Current Timesheet symbol if the user has Enter Time or Timesheets Navigate rights

     

    Currently in r13.x when a user logs into the Clarity application the UI Theme will show the symbol in the top right corner for "Current Timesheets" to all

    users irrespectively of the permissions that the user has. If a user does not have "Timesheets - Navigate" (global) or "Resource - Enter time" (instance) it

    will give different error messages when actually clicking on the symbol, so the permissions take effect as they should at this point but customer would like the

    display of this icon to be already dependent on the permissions in order to avoid users who then don't have right for timesheets to even see this link.

     

    Its implementation would address Matej's request.

    Since enhancements are now handled through the communities by submitting ideas, it could be a good start point to get product management involved on a possible product enhancement.

     

    Regards,



  • 18.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 05:42 AM

    Thanks for chipping in with this useful info, Jose

     

    NJ



  • 19.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 05:50 AM

    Hi NJ,

     

    Yes you are right!

    I can confrim that when remove these 2 rights you've mentioned:

     

    Timesheet - Navigate

    Resource - Enter Time

     

    Then, I login as the user and when I click on the Current Timesheet icon, it gives you the mentioned error message -

    Error 401 - Unauthorized. You are not authorized to view the page. If you are sure you have access, try logging in again or contact your system administrator.

     

    So for this time I think it's a quite relevant.

     

    @Jose: many thanks for that, I think this is exactly what I'm looking for. Could you please navigate me how could I access this ERQ file? I was not successful when searching in Ideas... Thanks



  • 20.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 03, 2015 06:03 AM

    Hi Matej,

    I have raised an idea for you on the communities:

    UI Themes should only show the Current Timesheet icon if the user has Enter Time or Timesheets Navigate rights

    The ideas can be voted by anyone on the communities. Bigger the number of votes, bigger the chances to get it implemented

    Regards,

    Joxi



  • 21.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 07:13 AM

    Hi All guys,

     

    Thanks lot Jose for this creation. Could you please all vote for this Idea please? Your votes are very appreciated

    Many thanks

     

    Matej



  • 22.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 03, 2015 09:24 AM

    Voted already

     

    Thank, again, Jose

     

    NJ



  • 23.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 04, 2015 02:43 AM

    Hi guys,

     

    Thanks a lot for your votes!

     

    Although we managed this I've found out another kind of "bug". Not sure if should create a new discussion topic or continue with this in line... If I should create a new one, just write me and I will do it. Thanks

     

    So, the new bug I've found occurs when I've tested behavior with removing only right Timesheet - Navigate from external user group. I've tested it also in our system and then also in pure installation of Clarity ver. 13.3 on Sandbox (provided by CA). When this right was removed, I've clicked on "Current timesheet" (clock icon) in the right upper corner, then timesheet appears. I've submitted it. Then error

    Error 401 - Unauthorized. You are not authorized to view the page. If you are sure you have access, try logging in again or contact your system administrator. appeared, as expected.


    However 2 things happened also:

    - After clicked on Submit, this one TS got status Submitted, which shouldn't happen I'd say.

    - When tried to access other TS via "Current timesheet" (clock icon), immediately (no TS was displayed) appeared error Error 401 - Unauthorized. You are not authorized... etc. 

      So I mean everytime after first "Submit", I cannot access any other TS via current timesheet icon. I assume this "Submit" changed something so then this Error msg appeared. In fact this could be the state I'd like to achieve - after removing "Timesheet - Navigate" right, clicking on Current timesheet icon, all TS will be unaccessible. But from this small test it seems like a bug


    Could you please test from your side and let me know? Thanks

    Matej





  • 24.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 04, 2015 02:50 AM

    Hi Matej,

     

    This is what i was saying yesterday and I feel its shouldn't even allow you to submit and then gives error. Please raise a case and we can work with you. Just going by the testing I did yesterday it looks a bug to me though.

     

    Regards

    Suman Pramanik



  • 25.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 04, 2015 03:10 AM

    Hi Matej,

    I have done further tests in severla versions of Clarity.

     

    13.3 I get same results as you.

    Dansborg2 Good news.

    As soon as you remove the timesheets navigate access right from the user, you get an error straight away when you click on the clock icon for the current timesheet

     

    This change done to Dansborg2 code I assuem addresses all your concerns.

    Regards,

    Joxi



  • 26.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 04, 2015 03:17 AM

    Thanks for the info, Jose

     

    Time to upgrade matej256 ?

     

    NJ



  • 27.  Re: Disable "current timesheet" button from quick menu

    Posted Feb 04, 2015 03:36 AM

    Hi all,


    @Suman: A case has been already raised and Jose is my supporter. Thanks for your tests and sorry for not noticed you posted it yesterday...

     

    @Jose: Thanks too for your tests.




  • 28.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 04, 2015 04:39 AM

    Hi Matej,

     

    Yes just checked in Dansborg2  and unable to reproduce.


    Regards

    Suman Pramanik



  • 29.  Re: Disable "current timesheet" button from quick menu

    Broadcom Employee
    Posted Feb 04, 2015 02:57 AM

    Hi Matiej,

    I have just done some tests and I can reproduce the same.

    Since I already have an issue with you, let me do some further tests and I will provide you with my feedback.

    If necessary I will raise the issue for you.

    I will get back to you on all this.

    Regards,

    Joxi