← Back to team overview

mahara-contributors team mailing list archive

[Bug 1252885] Re: Hide suspended users' pages from the "Latest Pages" block

 

The data in the newviews block comes from view_search(), a function
which is meant to return only views that the specified user has access
to. So, it would probably make the most sense to add a filter there to
prevent the inclusion of views from suspended users, since the user does
not have access to them.

On the other hand, would this cause performance issues? Adding one more
table to the already-costly latest views query?

-- 
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/1252885

Title:
  Hide suspended users' pages from the "Latest Pages" block

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  I noticed this one on mahara.org. When you suspend a user, their Pages
  are no longer accessible (going to one gives you an "access denied"
  error). BUT, they still show up in the "Latest Pages" block.

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


References