You are here

function follow_links_user_access in Follow 7.2

Same name and namespace in other branches
  1. 5 follow.module \follow_links_user_access()
  2. 6 follow.module \follow_links_user_access()
  3. 7 follow.module \follow_links_user_access()

Access callback for user follow links editing.

1 call to follow_links_user_access()
follow_contextual_links_view_alter in ./follow.module
Implements hook_contextual_links_view_alter().
1 string reference to 'follow_links_user_access'
follow_menu in ./follow.module
Implements hook_menu().

File

./follow.module, line 62

Code

function follow_links_user_access($uid) {
  return ($GLOBALS['user']->uid == $uid && user_access('edit own follow links') || user_access('edit any user follow links')) && $uid > 0;
}