Kimai2: Hiding system/non-user accounts, eg. in reports

Created on 29 Aug 2020  路  5Comments  路  Source: kevinpapst/kimai2

Is your feature request related to a problem? Please describe.
Active users with no hours show on reports, such as the owner and system-admin account. Setting an account to inactive disables access, and there is no option to have certain accounts separate which to not generate on reports.

Describe the solution you'd like
Option for certain roles or accounts that would not have timesheets or calculate on any hours, however, still retain higher system admin or administrator access.

Describe alternatives you've considered
Revoking the owners permissions...

Additional context
None.

feature request

Most helpful comment

Yes to "boolean flag" and yes to "cannot be deleted" from my side.

All 5 comments

Good feature request, I like that one! Flagging a user as "system account" could prevent it from showing up in:

  • Reports
  • Team assignments?
  • Where else?

Maybe User selection when creating a timesheet or expense?

A simple solution (I think) would be to add an additional boolean for the users table is_system_account to check against when generating the reports and fields, instead of a completely separate user-type, but looking back that seems not-so-simple. Perhaps a set system_account that cannot be deleted is another thought.

I'm still working through trying to learn the ropes, and pouring over the code to gather thoughts on how some of my ideas may work fluidly with the current system.

Yes to "boolean flag" and yes to "cannot be deleted" from my side.

I will see if I can get a dev server setup this week to help with the code.

馃憤

Was this page helpful?
0 / 5 - 0 ratings