Reviewed:  https://reviews.mahara.org/5820
Committed: 
https://git.mahara.org/mahara/mahara/commit/2bcebcd4bb1359f924a438742bafad0486e6dc5f
Submitter: Aaron Wells ([email protected])
Branch:    master

commit 2bcebcd4bb1359f924a438742bafad0486e6dc5f
Author: Robert Lyon <[email protected]>
Date:   Mon Dec 7 13:32:10 2015 +1300

Bug 1523298: Make get_owner_object() return LiveUser object

This way we can avoid re-making it multiple times further down the
chain.

Most places where the get_owner_object() object was passed can handle
dealing with a User object vs a StdObject anyway.

behatnotneeded - existing tests should suffice

Change-Id: I2b92d9e408066a9c3b4c2f0bb87fbe8370bf9911
Signed-off-by: Robert Lyon <[email protected]>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask 
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1523298

Title:
  Unnecessary calls to new User object in can_view_view

Status in Mahara:
  In Progress
Status in Mahara 15.10 series:
  In Progress
Status in Mahara 16.04 series:
  In Progress

Bug description:
  Slimming down the number of calls to new User/find_by_id() when we
  already have the User object being passed around

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1523298/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to