Error when viewing a profile page with wall post as an Institution admin
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
High
|
Cecilia Vela Gurovic | ||
17.04 |
Fix Released
|
High
|
Unassigned | ||
17.10 |
Fix Released
|
High
|
Unassigned | ||
18.04 |
Fix Released
|
High
|
Unassigned | ||
18.10 |
Fix Released
|
High
|
Cecilia Vela Gurovic |
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-
PluginBlock
PluginBlock
array_
PluginBlock
PluginBlock
call_
BlockInstan
View-
View-
View-
Changed in mahara: | |
importance: | Undecided → High |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
status: | New → In Progress |
no longer affects: | mahara/trunk |
Patch for "master" branch: https:/ /reviews. mahara. org/8814