[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara Status: New => In Progress -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: In Progress Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Also affects: mahara/17.10 Importance: Undecided Status: New ** Changed in: mahara/17.10 Milestone: None => 17.10.5 ** Changed in: mahara/17.10 Importance: Undecided => High ** Also affects: mahara/trunk Importance: Undecided Status: New ** Also affects: mahara/18.10 Importance: High Assignee: Cecilia Vela Gurovic (ceciliavg) Status: In Progress ** No longer affects: mahara/trunk ** Changed in: mahara/18.10 Milestone: 18.04.1 => 18.10.0 ** Also affects: mahara/18.04 Importance: Undecided Status: New ** Changed in: mahara/18.04 Milestone: None => 18.04.1 ** Changed in: mahara/18.04 Importance: Undecided => High ** Also affects: mahara/17.04 Importance: Undecided Status: New ** Changed in: mahara/17.04 Milestone: None => 17.04.8 ** Changed in: mahara/17.04 Importance: Undecided => High -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: In Progress Status in Mahara 17.04 series: New Status in Mahara 17.10 series: New Status in Mahara 18.04 series: New Status in Mahara 18.10 series: In Progress Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/18.04 Status: New => Confirmed ** Changed in: mahara/17.10 Status: New => Confirmed ** Changed in: mahara/17.04 Status: New => Confirmed -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin 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: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/18.10 Status: In Progress => Fix Committed ** Changed in: mahara/18.04 Status: Confirmed => In Progress ** Changed in: mahara/17.10 Status: Confirmed => In Progress ** Changed in: mahara/17.04 Status: Confirmed => In Progress -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: In Progress Status in Mahara 17.10 series: In Progress Status in Mahara 18.04 series: In Progress Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/17.10 Status: In Progress => Fix Committed -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: In Progress Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: In Progress Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/18.04 Status: In Progress => Fix Committed -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: In Progress Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: Fix Committed Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/17.04 Status: In Progress => Fix Committed -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: Fix Committed Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: Fix Committed Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/17.04 Status: Fix Committed => Fix Released -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: Fix Released Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: Fix Committed Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/18.04 Status: Fix Committed => Fix Released -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: Fix Released Status in Mahara 17.10 series: Fix Committed Status in Mahara 18.04 series: Fix Released Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/17.10 Status: Fix Committed => Fix Released -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Committed Status in Mahara 17.04 series: Fix Released Status in Mahara 17.10 series: Fix Released Status in Mahara 18.04 series: Fix Released Status in Mahara 18.10 series: Fix Committed Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp
[Mahara-contributors] [Bug 1767220] Re: Error when viewing a profile page with wall post as an Institution admin
** Changed in: mahara/18.10 Status: Fix Committed => Fix Released -- 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/1767220 Title: Error when viewing a profile page with wall post as an Institution admin Status in Mahara: Fix Released Status in Mahara 17.04 series: Fix Released Status in Mahara 17.10 series: Fix Released Status in Mahara 18.04 series: Fix Released Status in Mahara 18.10 series: Fix Released Bug description: To replicate Have a User1 belong to an Institution Go to profile page of the user and post a message in the wall Have User2 and set it as admin of the Institution Login as User2 and go to User1 profile page Expected result: You can see the User1's profile page Actual result: The error message is displayed [WAR] cf (auth/user.php:846) Invalid argument pass to is_admin_for_user method Call stack (most recent first): User->is_admin_for_user(" . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:324 PluginBlocktypeWall::can_delete_wallpost("3", " . intval($owner) .") at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:295 PluginBlocktypeWall::{closure}(object(stdClass)) at Unknown:0 array_map(object(Closure), array(size 3)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:297 PluginBlocktypeWall::fetch_posts(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/wall/lib.php:58 PluginBlocktypeWall::render_instance(object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/lib/mahara.php:1809 call_static_method("PluginBlocktypeWall", "render_instance", object(BlockInstance)) at /home/ceciliavg/maharacode/mahara/htdocs/blocktype/lib.php:1041 BlockInstance->render_viewing(false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2133 View->build_column(1, 2, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2087 View->build_columns(1, false, false) at /home/ceciliavg/maharacode/mahara/htdocs/lib/view.php:2072 View->build_rows() at /home/ceciliavg/maharacode/mahara/htdocs/user/view.php:93 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1767220/+subscriptions ___ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp