Active
Project:
Core searches
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2008 at 17:11 UTC
Updated:
14 Jul 2008 at 14:47 UTC
There should be a new permission 'search users' that should be used instead of 'access user profiles'.
It has to be implemented in usersearch.module:
- if (user_access('access user profiles')) {
+ if (user_access('search users')) {
And also in the patch to user.module:
function user_perm() {
- return array('administer access control', 'administer users', 'access user profiles', 'change own username');
+ return array('administer access control', 'administer users', 'access user profiles', 'change own username', 'search users');
Comments
Comment #1
robertdouglass commentedDisagree. If you can search for users it is the same as accessing their profile information.
Comment #2
jpd972 commented(reopening)
What about this then?
The rationale for it is that we want users to be able to access other profiles (comments, buddies etc), but not to search for random users.
Comment #3
robertdouglass commentedWon't you achieve your goal by simply not enabling the usersearch module?
Comment #4
jpd972 commentedNo, because I need it to be enabled for some other roles.