stable
Clone or download
Read-only
request #16236 Changesets as anonymous when done by SystemEvent
Do not rely on getCurrentUser at changeset creation/update. Instead, provide in parameter the real user object. Changes: * Tracker_Artifact_Changeset_NewChangesetCreator::saveNewChangesetForField add user to $field->userCanUpdate($submitter) * Method interface signature Workflow_Transition_Condition::validate and retrieve current_user as fourth argument and delete his instanciation inside of Workflow_Transition_Condition_Permissions::validate. Change-Id: I16128d2ccb748f6609d1f9456992e5b6089125ed
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php | +1 | −1 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition.class.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition/Condition.class.php | +1 | −2 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition/Condition/CommentNotEmpty.class.php | +1 | −5 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition/Condition/FieldNotEmpty.class.php | +1 | −5 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition/Condition/Permissions.class.php | +2 | −4 | Go to diff View file |
M | plugins/tracker/include/Workflow/Transition/ConditionsCollection.class.php | +2 | −2 | Go to diff View file |
M | plugins/tracker/include/Workflow/Workflow.class.php | +2 | −4 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Workflow/Transition/Condition/CommentNotEmptyTest.php | +13 | −7 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Workflow/Transition/Condition/PermissionsTest.php | +17 | −6 | Go to diff View file |
M | plugins/tracker/tests/unit/Workflow/Transition/Condition/FieldNotEmptyTest.php | +12 | −10 | Go to diff View file |
M | plugins/tracker/tests/unit/Workflow/TransitionTest.php | +4 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Workflow/WorkflowTest.php | +4 | −4 | Go to diff View file |