Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1799

Add/use "system" user instead of "root" for system initiated activities

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Needs Review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.2.2
    • Component/s: Data Management
    • Labels:
      None
    • Change Log Group:
      Changed
    • Change Log Message:
      Non-human activities are now recorded as "system" user instead of "root" user.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. define "USER_SYSTEM" constant with "-3" value after "USER_ROOT" constant (file "core/kernel/startup.php")
      1. 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
      1. in the following places use "USER_SYSTEM" instead of "USER_ROOT":
        • \kScheduledTaskManager::runAll
        • tools/run_event.php

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 12h 34m
                  12h 34m