I am having a hard time finding out why non admins (and anonymous users) are having "access denied" errors when looking at Drupal-7 profiles of other users.
The "View user profiles" permission is checked.
My user's profile page is a panel, but the 'access denied' errors even if the profile is not a panel.
Any idea? Please help.
Additional Information:
Using a code inspired by Yuriy Babenko's answer, and filterning for uniqueness, I see the following pemissions are denied when user 163 views the profile of user 174 (goes to /user/174) :
access administration menu
access administration pages
access all views
administer block classes
administer blocks
administer contexts
administer less
administer media
administer menu
administer user relationship
administer users
administer views
bypass node access
execute php code
view any private_notification content
view own unpublished content
view the administration theme
I don't see anything related to user access...
The nice Access Denied Backtrace module gives the following backtrace, but how to interpret it?
Array
(
[ 2: drupal_deliver_page()] => Array
(
[file] => includes/common.inc:2564
[args] => Array
(
[0] => 3
[1] =>
)
)
[ 1: menu_execute_active_handler()] => Array
(
[file] => includes/menu.inc:532
[args] => Array
(
)
)
[ 0: main()] => Array
(
[file] => index.php:21
[args] => Array
(
[q] => user/174
)
)
)
HOTFIX: Adding the following code before line 820 of user.module temporarily solved the issue:
if (arg(0) == 'user' && is_numeric(arg(1)) && is_null(arg(2)) &&
$string == 'administer users' ) {
return TRUE;
}
But how do I find why the 'administer users' permission to view other user profiles?