You are here

function follow_links_user_access in Follow 5

Same name and namespace in other branches
  1. 6 follow.module \follow_links_user_access()
  2. 7.2 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_block_config_links in ./follow.module
Outputs a list of configuration links for users with appropriate permissions
1 string reference to 'follow_links_user_access'
follow_menu in ./follow.module
Implementation of hook_menu().

File

./follow.module, line 60
Allows users to add links to their social network profiles.

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;
}