Patch for "master" branch: https://reviews.mahara.org/8867
-- 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/1771950 Title: Fixing delete wallpost still has a problem Status in Mahara: In Progress Status in Mahara 17.04 series: Confirmed Status in Mahara 17.10 series: Confirmed Status in Mahara 18.04 series: Confirmed Status in Mahara 18.10 series: In Progress Bug description: In Bug 1767220 we fixed up the problem with showing the delete wallpost button Except we failed to fix one scenario and that was checking if the viewer of the page is an institutional admin of the page owner. In the original code we sent the $owner id through as an integer, ie intval($owner) But now we send it as a string $item->deletable = PluginBlocktypeWall::can_delete_wallpost($item->from, $owner); And the check in can_delete_wallpost() is for a User object or integer so fails and throws error We need to fix up the passing of the id to be integer again To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1771950/+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

