function fb_permission_access_own in Drupal for Facebook 7.3
Same name and namespace in other branches
- 6.3 contrib/fb_permission.module \fb_permission_access_own()
- 6.2 contrib/fb_permission.module \fb_permission_access_own()
Helper function for menu item access check.
1 string reference to 'fb_permission_access_own'
- fb_permission_user_categories in contrib/
fb_permission.module - Implements hook_user_categories().
File
- contrib/
fb_permission.module, line 72 - Code pertaining to Facebook's extended permissions. see http://wiki.developers.facebook.com/index.php/Extended_permissions
Code
function fb_permission_access_own($account, $perm) {
if (fb_facebook_user()) {
return $GLOBALS['user']->uid == $account->uid && user_access($perm);
}
}