Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Ajax sorting of exposed filter not working when "access code" used at View's Page settings
- checking if the user watching his profile
global $user;
if (arg(0) == 'user' && is_numeric(arg(1)) && $user->uid == arg(1)) {
return TRUE; // tab & view will be shown
}
return FALSE;
But admin could make ajax sorting.
Also user can do
with "Bypass views access control" permission or
if Ajax switched off or
if Javascript is off (at admin/structure/views/settings/advanced).
Comments
Comment #1
A.Kotov CreditAttribution: A.Kotov commentedstrange this code is working as expected