/
Differentiate between human and non-human activities [5.2.2-B2]

Differentiate between human and non-human activities [5.2.2-B2]

In In-Portal actions can be performed by a human (e.g. user via browser) or by itself (e.g. CRON action).

Right now all CRON actions appear as performed by the "root" user, which is very confusing because you can't tell if the CRON did the action or the actual "root" user has logged-in and did that acton.

Solution

  1. define "USER_SYSTEM" constant with "-3" value after "USER_ROOT" constant (file "core/kernel/startup.php")

  2. in the following places use "USER_SYSTEM" the same way as "USER_ROOT":

    • \kApplication::permissionCheckingDisabled

    • lists of user field options
    • SQLs to resolve user ID from the database into it's name
  3. in the following places use "USER_SYSTEM" instead of "USER_ROOT":

    • \kScheduledTaskManager::runAll

    • tools/run_event.php

Related Tasks

INP-1799 - Getting issue details... STATUS