-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tab menu missing on user pages #2
Comments
@jenlampton - I can reproduce this error.
If I disable that particular function (or even just the From what I can tell, the module is looking at the menu call and then overriding if it would be access denied but if it isn't it's just returning that page as HTML without the other menu items or the containing layout. I've tried experimenting with This module is a great asset in the security arsenal of a backdrop site, so it would be great if we could fix this bug. |
@jenlampton @robertgarrigos - I'd like to share what I've tried so far in case either of you are able to add to it: Within if (!user_access('access user profiles')) {
$items['user/%user']['delivery callback'] = 'username_enumeration_prevention_delivery_wrapper';
} That improves things for the admin, but not for any user doesn't have that permission. I tried to see if I could access what user page was being called to see if it matched the global $user;
$user_page = '?'; // get uid of user page being accessed whether accounts/username or user/1/edit
if (!user_access('access user profiles') && $user->uid != $user_page) {
$items['user/%user']['delivery callback'] = 'username_enumeration_prevention_delivery_wrapper';
} Do either of you know the way to get the |
Oddly, I also tried: if (user_is_logged_in() == FALSE) {
$items['user/%user']['delivery callback'] = 'username_enumeration_prevention_delivery_wrapper';
} As a fallback to basically only apply to anonymous users (also tried |
On further testing, I'm not sure that any of the tests above are actually working within this function. They stop the screen being broken but still show Access denied; so the same as disabling the function. |
This module removes the tab menu on user pages:
They are back once the module is disabled:
The text was updated successfully, but these errors were encountered: