I've now added a third commit to prevent searching on usernames if the 'nousernames' option is enforced (except for site admins and site staff who can always see usernames anyway, and should therefore also be able to always search on them).
I've also amended the first commit to fix a couple of areas I spotted where the 'searchusernames' option was being used to decide whether or not to *display* usernames. The 'nousernames' option seems a more logical choice so is now used instead. -- 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/1353516 Title: Site option to prevent display of usernames Status in Mahara ePortfolio: In Progress Bug description: There are a few places in Mahara where usernames are displayed to ordinary users (e.g. user/find.php and user/online.php). This may be a privacy issue for sites where email addresses are used as usernames. This patch adds a site option enabling the admin to prevent usernames being displayed to ordinary users anywhere in the site. To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/1353516/+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

