Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

  • No labels